Skip to content

Commit

Permalink
features for row grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
Larocceau committed Dec 4, 2024
1 parent 5df8d26 commit 21688db
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/AgGrid.fs
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,16 @@ type AgGrid<'row> =
icon: obj option//HtmlElement
}

type IGroupCellRendererParams<'row, 'value> = {
suppressCount: bool
suppressDoubleClickExpand: bool
checkBox: bool
innerRenderer: ICellRendererParams<'row, 'value> -> ReactElement
innerRendererParams: obj array
totalValueGetter: string
}


[<RequireQualifiedAccess>]
type BuiltInMenuItem =
| AutoSizeAll
Expand Down Expand Up @@ -763,6 +773,8 @@ type AgGrid<'row> =
static member inline rowGroup(v: bool) = columnDefProp<'row, 'value> ("rowGroup" ==> v)

static member inline suppressAggFuncInHeader(v:bool) = columnDefProp<'row, 'value> ("suppressAggFuncInHeader" ==> v)
static member inline GroupCellRendererParams(v: IGroupCellRendererParams<'row, 'value>) =
columnDefProp<'row, 'value> ("cellRendererParams" ==> v)

[<Erase>]
type AgGrid<'row> =
Expand All @@ -772,6 +784,9 @@ type AgGrid<'row> =
static member inline groupDisplayType(v: RowGroupingDisplayType) =
agGridProp<'row> ("groupDisplayType", v.RowGroupingDisplayTypeText)

static member inline autoGroupColumnDef(values: IColumnDefProp<'row, 'value> seq) =
agGridProp ("autoGroupColumnDef", values |> unbox<_ seq> |> createObj)

static member inline pivotMode(v: bool) = agGridProp<'row> ("pivotMode", v)

static member inline getDataPath( v: 'row -> string array) = agGridProp<'row> ("getDataPath", v)
Expand All @@ -789,4 +804,4 @@ type AgGrid<'row> =
| BuiltIn builtInItemName -> box builtInItemName.BuiltInMenuItemText
| Custom customMenuItem -> box customMenuItem
|]
)
)

0 comments on commit 21688db

Please sign in to comment.