v7.7.0
7.7.0 (2024-04-20)
Quick Info
This new release adds 2x new grid options defaultEditorOptions
and defaultFilterOptions
so that user can define global Editor/Filter options instead of having to duplicate same options on each column editorOptions
/filterOptions
. An example is shown below.
- Note: for
defaultFilterOptions
, we use the same keys as the Editor (date
,select
,slider
, ...) but please note that these 3 filters options have combined options into 1 prop for compound & range filters (e.g.date
is for bothcompoundDate
anddateRange
filter options).
this.gridOptions = {
defaultEditorOptions: {
autocompleter: { debounceWaitMs: 150 }, // auto-typed as AutocompleterOption
date: { minDate: 'today' },
longText: { cols: 50, rows: 5 }
}
}
⚠️ Breaking Change (Aurelia 2 - Beta.15)
Please note that I upgraded Aurelia 2 to Beta 15 which has breaking changes with @decorator
, so if you want to update Aurelia-Slickgrid, you will to also upgrade Aurelia 2 Beta 15. The changes are as following (also remove decorators from tsconfig.json
)
- constructor(@I18N private readonly i18n: I18N) {
+ constructor(private readonly i18n: I18N = resolve(I18N)) {
Features
- add global
defaultEditorOptions
&defaultFilterOptions
(#1183) (eefca81) - by @ghiscoding
Installation
Please remember that all packages of @slickgrid-universal
(v4.7.0
) and Aurelia-Slickgrid
(v7.7.0
) must be updated at the same time and they will always get bumped on the same day to avoid any upgrade issues. You can also consult the Versions Compatibility Table - Wiki
also remember that Slickgrid-Universal monorepo is where the biggest portion of the code exists (~90%), so most of the commits are now happening on that side.
- review the Slickgrid-Universal changelog
- and the Aurelia-Slickgrid changelog (above)