Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pinning to autoGroupRow #50

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ELM_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Elm Changelog

## [26.0.0]

- Add `pinned` to `GridConfig.autoGroupColumnDef`

## [25.0.0]

- Add `autoHeight` and `wrapText` to `ColumnSettings`
Expand Down
2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "mercurymedia/elm-ag-grid",
"summary": "AgGrid integration for Elm",
"license": "MIT",
"version": "25.0.0",
"version": "26.0.0",
"exposed-modules": [
"AgGrid.ContextMenu",
"AgGrid.Expression",
Expand Down
1 change: 1 addition & 0 deletions examples/src/Grouping.elm
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ viewGrid model =
, checkbox = True
}
, resizable = True
, pinned = AgGrid.PinnedToLeft
}
, rowGroupPanelShow = AgGrid.AlwaysVisible
}
Expand Down
3 changes: 3 additions & 0 deletions src/AgGrid.elm
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ type alias GridConfig dataType =
, headerName : Maybe String
, minWidth : Maybe Int
, resizable : Bool
, pinned : PinningType
}
, autoSizeColumns : Bool
, cacheQuickFilter : Bool
Expand Down Expand Up @@ -676,6 +677,7 @@ defaultGridConfig =
, headerName = Nothing
, minWidth = Nothing
, resizable = True
, pinned = Unpinned
}
, autoSizeColumns = False
, cacheQuickFilter = False
Expand Down Expand Up @@ -1532,6 +1534,7 @@ generateGridConfigAttributes gridConfig =
]
)
, ( "resizable", Json.Encode.bool gridConfig.autoGroupColumnDef.resizable )
, ( "pinned", encodeMaybe Json.Encode.string (pinningTypeToString gridConfig.autoGroupColumnDef.pinned) )
]
)
, ( "autoSizeColumns", Json.Encode.bool gridConfig.autoSizeColumns )
Expand Down
Loading