v4.7.0
4.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 }
}
}
Bug Fixes
- common: don't try to strip tags on object input to calc cell width (#1453) (5ab671b) - by @ghiscoding
- common: switch back to
autocompleter
with ESM build (#1450) (ad66a12) - by @ghiscoding - core: Editor.keyCaptureList is an array of numbers (#1458) (62a686e) - by @ghiscoding
- OData: sorting columns via
id
instead of field property name, fixes #1467 (#1469) (0a4d402) - by @zewa666 - styling: improve button & text colors for Dark Mode (9414ab4) - by @ghiscoding-SE
- wrong operator comparison (#1461) (abe772b) - by @zewa666
Features
- common: add global
defaultEditorOptions
&defaultFilterOptions
(#1470) (0462f17) - by @ghiscoding - core: add
getFilterArgs()
toSlickDataView
(#1457) (7563126) - by @ghiscoding - notify onValidationError on paste if validation failed (#1462) (38b465c) - by @zewa666