Skip to content

Commit

Permalink
Merge pull request #53 from maxhille/suppress-aggfunc-header
Browse files Browse the repository at this point in the history
Support for GridConfig.suppressAggfuncInHeader
  • Loading branch information
hingew authored Feb 14, 2024
2 parents bdffdf2 + 4b82f5b commit 91b5c46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ELM_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [26.0.0]

- Add `suppressAggFuncInHeader` to `GridConfig`
- Add `pinned` to `GridConfig.autoGroupColumnDef`

## [25.0.0]
Expand Down
1 change: 1 addition & 0 deletions examples/src/Grouping.elm
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ viewGrid model =
, pinned = AgGrid.PinnedToLeft
}
, rowGroupPanelShow = AgGrid.AlwaysVisible
, suppressAggFuncInHeader = True
}

gridSettings =
Expand Down
4 changes: 4 additions & 0 deletions src/AgGrid.elm
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ type alias GridConfig dataType =
, size : String
, sizeToFitAfterFirstDataRendered : Bool
, stopEditingWhenCellsLoseFocus : Bool
, suppressAggFuncInHeader : Bool
, suppressMenuHide : Bool
, suppressRowClickSelection : Bool
, suppressRowDeselection : Bool
Expand Down Expand Up @@ -660,6 +661,7 @@ Can be used when implementing the grid.
, size = "65vh"
, sizeToFitAfterFirstDataRendered = True
, stopEditingWhenCellsLoseFocus = True
, suppressAggFuncInHeader = False
, suppressMenuHide = False
, suppressRowClickSelection = False
, suppressRowDeselection = False
Expand Down Expand Up @@ -716,6 +718,7 @@ defaultGridConfig =
, size = "65vh"
, sizeToFitAfterFirstDataRendered = True
, stopEditingWhenCellsLoseFocus = True
, suppressAggFuncInHeader = False
, suppressMenuHide = False
, suppressRowClickSelection = False
, suppressRowDeselection = False
Expand Down Expand Up @@ -1635,6 +1638,7 @@ generateGridConfigAttributes gridConfig =
)
, ( "sizeToFitAfterFirstDataRendered", Json.Encode.bool gridConfig.sizeToFitAfterFirstDataRendered )
, ( "stopEditingWhenCellsLoseFocus", Json.Encode.bool gridConfig.stopEditingWhenCellsLoseFocus )
, ( "suppressAggFuncInHeader", Json.Encode.bool gridConfig.suppressAggFuncInHeader )
, ( "suppressMenuHide", Json.Encode.bool gridConfig.suppressMenuHide )
, ( "suppressRowClickSelection", Json.Encode.bool gridConfig.suppressRowClickSelection )
, ( "suppressRowDeselection", Json.Encode.bool gridConfig.suppressRowDeselection )
Expand Down

0 comments on commit 91b5c46

Please sign in to comment.