![]() ![]() If set to 0 all inputs are hidden, and an empty array of filterValues is provided to the predicate function.The number of filterValues and corresponding inputs is controlled by the optional property numberOfInputs: The custom filter logic is implemented through the predicate function, which receives the filterValues typed by the user along with the cellValue from the grid, and returns true or false. A default displayName should also be provided but can be replaced by a locale-specific value using a getLocaleText. ![]() The displayKey should contain a unique key value that doesn't clash with the built-in filter keys. The Date column has a Date Filter with maxNumConditions set to 1, so that only the first condition is shown.The defaultJoinOperator is also set to 'OR' rather than the default ( 'AND'). The Age column has a Number Filter with numAlwaysVisibleConditions set to 2 so that two conditions are always shown.The Sport column shows a Text Filter with maxNumConditions set to 10 so that up to ten conditions can be entered.The Country column shows a Text Filter with filterOptions set to show a different list of available options, and defaultOption set to change the default option selected.The Athlete column shows a Text Filter with default behaviour for all options.The following example demonstrates Filter Condition configuration that can be applied to any Simple Filter. All Join Operators have the same value, with only the first one being editable when there are multiple. The Join Operator decides how the Filter Conditions are joined, using either AND or OR. In this case, Filter Conditions at the end will be disabled until the previous Filter Condition has been completed. It is also possible to always display a certain number of Filter Conditions by setting the Filter Parameter numAlwaysVisibleConditions. The maximum number of Filter Conditions can be controlled by setting the Filter Parameter maxNumConditions (the default value is two). Additionally, when the filter is closed, any empty Filter Conditions not at the end are removed if required. When the user clears the last completed Filter Condition, any empty Filter Conditions on either side are hidden if required. When the user completes all the visible Filter Conditions, another Filter Condition becomes visible. Number of Conditionsīy default each filter initially only displays one Filter Condition. The value type depends on the filter type, e.g. Filter ValueĮach filter option takes zero (a possibility with custom options), one (for most) or two (for 'inRange') values. Information on defining Custom Filter Options can be found below. 'equals', 'not equals', etc.Įach filter's default filter options can be found on their respective pages: Each filter option represents a filtering strategy, e.g. Each filter provides a dropdown list of filter options to select from.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |