- Add the following properties to the
editRequest
event:field
the name of the actual changed fieldnewValue
the new value of the fieldoldValue
the old value of the field
- Add support for column groups
- Use AgGrid default bool renderer
- AgGrid API now exposed again as
<custom-element>.api
as it was before 4.0.0
-
Enabled
readOnlyEdit
in AgGrid and sendingeditRequest
events to notify about changes -
Updates AG Grid to 31.1.x
-
AG Grid dependencies now via modules (https://www.ag-grid.com/javascript-data-grid/modules/). If you are upgrading from an older version, you need to change your NPM dependencies to use the module-based imports. Also check your Browser console for warnings from AG Grid.
- Replace ag-grid-community dependency with @ag-grid-community/core
- Replace ag-grid-enterprise dependency with @ag-grid-enterprise/core
- Add module-based dependencies as needed:
"@ag-grid-community/styles": "^31.1.0", "@ag-grid-community/client-side-row-model": "^31.1.0", "@ag-grid-enterprise/column-tool-panel": "^31.1.0", "@ag-grid-enterprise/filter-tool-panel": "^31.1.0", "@ag-grid-enterprise/menu": "^31.1.0", "@ag-grid-enterprise/range-selection": "^31.1.0", "@ag-grid-enterprise/rich-select": "^31.1.0", "@ag-grid-enterprise/row-grouping": "^31.1.0", "@ag-grid-enterprise/side-bar": "^31.1.0",
- Register AgGrid components as necessary:
import { ModuleRegistry } from '@ag-grid-community/core' import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model' import { LicenseManager } from '@ag-grid-enterprise/core' import { ColumnsToolPanelModule } from '@ag-grid-enterprise/column-tool-panel' import { FiltersToolPanelModule } from '@ag-grid-enterprise/filter-tool-panel' import { MenuModule } from '@ag-grid-enterprise/menu' import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection' import { RichSelectModule } from '@ag-grid-enterprise/rich-select' import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping' import { SideBarModule } from '@ag-grid-enterprise/side-bar' ModuleRegistry.registerModules([ ClientSideRowModelModule, ColumnsToolPanelModule, FiltersToolPanelModule, MenuModule, RangeSelectionModule, RichSelectModule, RowGroupingModule, SideBarModule ]);
- Explicitly check in column events for
finished === false
- Handling
rowClassRules
as expressions - Dispatch column events when
finished
is set
- Added support for conditional
cssClasses
in context menu items
- Menu items on column headers have been updated slightly to customize the default action "resetColumns". It now triggers a column state change event, besides the usual action.
- Set initial cell editor value
- Remove unintended space for expression operator OR
- Added an
app_editor
cellEditor component to use Elm apps for editing cell values.
- Fixed change detection for case-sensitive attributes (i.e.
quickFilterText
)
- Fix: Ignore rows without data (i.e. footer) when evaluating expressions
- Changed the AgGrid expression string for
cellClassRules
to our ownExpression
object for consistency.
- Applying
editable
callbacks on ColumnDefs
- Added
expression.js
to evaluate serialized expressions for the context menu actions
- Add setter for
columnDefs
to make use of the gridApi
- Listening for
onColumnVisible
event for column state changes
- Added callback value to customize the row ID
- Using null-safe access operator for
getRowId
- Added customized
onSelectionChange
event listener that returns now the current selection - Added
selectedIds
setter to handle custom selections - Fixed a bug that no leading minus could be entered without any number in the input field
- Fixed a bug that no CTRL actions (cut, copy, paste, ...) where usable in the decimal input field
- Added
isRowSelectable
callback to the GridOptions - Changed: Updated
ag-grid-community
andag-grid-enterprise
peer-dependency to 29.1.0 - The ElmAgGrid class now needs to be instantiated manually in order to register the webcomponents. The shortest form would just be
new ElmAgGrid()
- Additionally, the custom CellRenderer components defined via
window.ElmAgGridComponentRegistry
are now to be passed as an argument to the ElmAgGrid class
new ElmAgGrid({ apps: { customRenderer: Elm.Components.Custom } });
- Added new DecimalEditor component to edit localized cell values
- BREAKING CHANGE: Updated
ag-grid-community
andag-grid-enterprise
peer-dependency to 29.0.0 and dropping support for versions before 29.0.0
- Added
columnStateChanged
event to send table state changes to the Elm app
- Added AgGrid's
autoHeight
usage when nosize
is set for the table (by default the table still uses65vh
)
- Updated README
Requires at least version 2.0.0 of the elm-ag-grid
Elm package.
- Added cellRenderer to initialize elm applications and embed them into the cells
- Using
this
overquerySelector
in the webcomponent to allow multiple tables on the same page
Requires at least version 1.0.0 of the elm-ag-grid
Elm package.
- Updated README