diff --git a/docs/grid/api/gridcolumn_properties/gridcolumn_header_property.md b/docs/grid/api/gridcolumn_properties/gridcolumn_header_property.md
index e92ecca8..8a02841d 100644
--- a/docs/grid/api/gridcolumn_properties/gridcolumn_header_property.md
+++ b/docs/grid/api/gridcolumn_properties/gridcolumn_header_property.md
@@ -11,6 +11,9 @@ description: You can explore the header config of Grid column in the documentati
### Usage
~~~jsx
+type TOption = { id: Id, value: string } | string;
+type IOption = { id: Id, value: string };
+
header: [
{
text?:
@@ -35,6 +38,10 @@ header: [
filterConfig?: {
placeholder?: string, // sets an input placeholder for `inputFilter`, `comboFilter` and `dateFilter`
icon?: string, // sets CSS class for the filter icon in `inputFilter` and the calendar icon in `dateFilter`
+ /* the property of `selectFilter` and `comboFilter` configuration */
+ options?:
+ TOption[] |
+ ((uniqueData: IOption[], col: ICol) => TOption[]),
/* properties of `comboFilter` configuration */
filter?: (item, input: string) => boolean,
multiselection?: boolean, // false by default
@@ -100,7 +107,7 @@ Each header object may include:
| filterConfig |
- (optional) a configuration object for setting the behavior and appearance of the filter. The set of properties depends on the filter type specified in the `content` property:
- a configuration object for "inputFilter" can contain the following properties: - placeholder - (optional) the placeholder text in the input field
- icon - (optional) the CSS class for the filter icon
- a configuration object for "comboFilter" can contain a set of properties:- filter - (optional) sets a custom function for filtering Combo Box options
- multiselection - (optional) enables selection of multiple options, *false* by default
- readonly - (optional) makes ComboBox readonly (it is only possible to select options from the list, without entering words in the input). The default value of the readonly property depends on the following conditions:
- the `readonly:true` is set as a default value, if `htmlEnable:true` is set for a column and there is no template specified for a column
- in all other cases, `readonly:false` is set by default
- placeholder - (optional) sets a placeholder in the input of ComboBox
- virtual - (optional) enables dynamic loading of data on scrolling the list of options, true by default
- template - (optional) a function which returns a template with content for the filter options. Takes an option item as a parameter:
- item - (object) an option item
- a configuration object for "dateFilter" (PRO version) can contain a set of properties: Main properties:- icon - (optional) the CSS class for the calendar icon
- placeholder - (optional) the placeholder text in the input field when no date is selected
- asDateObject - (optional) determines how the filter processes data for `customFilter` and the `beforeFilter` and `filterChange` events. If *true*, the comparison is performed using Date objects, *false* by default
- range - (optional) enables the date range selection mode (from and to), *false* by default
- dateFormat - (optional) the date display format (e.g., *"%d/%m/%Y"*). By default, applies the `dateFormat` used for the column
Calendar API configuration properties:- date - (optional) - the initial date opened in the calendar
- mark - (optional) - a function for adding custom CSS classes to specific dates
- disabledDates - (optional) - a function for disabling the selection of specific dates
- weekStart - (optional) - the start day of the week (*"saturday"*, *"sunday"* (default), *"monday"*).
- weekNumbers - (optional) - shows week numbers if *true*, *false* by default
- mode - (optional) - the calendar display mode (*"calendar"* (default), *"year"*, *"month"*, *"timepicker"*)
- timePicker - (optional) - adds the ability to select time, *false* by default
- timeFormat - (optional) - the time format (*12* or *24* (default) hours)
- thisMonthOnly - (optional) - if *true*, allows selecting dates only within the current month, *false* by default
- width - (optional) - the width of the dropdown calendar, *"250px"* by default
|
+ (optional) a configuration object for setting the behavior and appearance of the filter. The set of properties depends on the filter type specified in the `content` property:
- a configuration object for "inputFilter" can contain the following properties: - placeholder - (optional) the placeholder text in the input field
- icon - (optional) the CSS class for the filter icon
- a configuration object for "selectFilter" can contain the following property:- options - (optional) sets the list of the filter options manually instead of building it from the column data. Can be set in one of the following ways:
- as an array of options, either
{ id, value } objects or plain strings (a string becomes both the id and the label of an option). Such a list fully replaces the data-driven one, and Grid does not scan the dataset for this column - as a callback function which receives the data-driven list, already normalized to
{ id, value } pairs, and the configuration object of the column, and returns the list of options to show An option object has two properties:- id - the value stored in the cell. This is what the filter compares against, and what customFilter receives as its match parameter. It must match the stored value, not the formatted one: in a column with type: "number" and a numberMask, the cell holds 1000 while Grid displays 1,000, so the option id must be 1000
- value - the label shown in the dropdown
If the property is omitted, Grid builds the list from the column data - a configuration object for "comboFilter" can contain a set of properties:- filter - (optional) sets a custom function for filtering Combo Box options
- multiselection - (optional) enables selection of multiple options, *false* by default
- readonly - (optional) makes ComboBox readonly (it is only possible to select options from the list, without entering words in the input). The default value of the readonly property depends on the following conditions:
- the `readonly:true` is set as a default value, if `htmlEnable:true` is set for a column and there is no template specified for a column
- in all other cases, `readonly:false` is set by default
- placeholder - (optional) sets a placeholder in the input of ComboBox
- virtual - (optional) enables dynamic loading of data on scrolling the list of options, true by default
- template - (optional) a function which returns a template with content for the filter options. Takes an option item as a parameter:
- item - (object) an option item
- options - (optional) sets the list of the filter options manually instead of building it from the column data, the same as the options property of the "selectFilter" configuration described above
- a configuration object for "dateFilter" (PRO version) can contain a set of properties: Main properties:- icon - (optional) the CSS class for the calendar icon
- placeholder - (optional) the placeholder text in the input field when no date is selected
- asDateObject - (optional) determines how the filter processes data for `customFilter` and the `beforeFilter` and `filterChange` events. If *true*, the comparison is performed using Date objects, *false* by default
- range - (optional) enables the date range selection mode (from and to), *false* by default
- dateFormat - (optional) the date display format (e.g., *"%d/%m/%Y"*). By default, applies the `dateFormat` used for the column
Calendar API configuration properties:- date - (optional) - the initial date opened in the calendar
- mark - (optional) - a function for adding custom CSS classes to specific dates
- disabledDates - (optional) - a function for disabling the selection of specific dates
- weekStart - (optional) - the start day of the week (*"saturday"*, *"sunday"* (default), *"monday"*).
- weekNumbers - (optional) - shows week numbers if *true*, *false* by default
- mode - (optional) - the calendar display mode (*"calendar"* (default), *"year"*, *"month"*, *"timepicker"*)
- timePicker - (optional) - adds the ability to select time, *false* by default
- timeFormat - (optional) - the time format (*12* or *24* (default) hours)
- thisMonthOnly - (optional) - if *true*, allows selecting dates only within the current month, *false* by default
- width - (optional) - the width of the dropdown calendar, *"250px"* by default
|