wv-filter-* base properties
Purpose
This is the base filter tag helper. It is inherited by other that are differentiated based on the data they are filtering. Filters in general are participating in search or filter forms and their main purpose is to generate the proper url query for the data in a grid to be filtered.
Properties
name | description |
---|---|
field-id |
object type: default value: is required: Used as an HTML ID of the field which is need for the Javascript functions |
init-errors |
object type: default value: is required: If any init errors are set, the field will render the label and an error message. Usually used for showing non validation system errors |
label |
object type: default value: is required: This is the form's label that will be presented to the end user |
name |
object type: default value: is required: Should match the record field name that needs to be filtered |
prefix |
object type: default value: is required: If you have two or more grids on a single page, each grid could apply a prefix to it query parameters it applies. You need to match this prefix in order for the filter to work correctly |
query-options |
object type: default value: is required: What options are available for filter type to the user. If empty list - the select input will not be presented to the user. If only one option that equals the |
query-type |
object type: default value: is required: This is the default filter/ query type that will be performed. Options are: Undefined, STARTSWITH, CONTAINS, EQ, NOT, LT, LTE, GT, GTE, REGEX, FTS, BETWEEN, NOTBETWEEN |
Example
<wv-filter-text id="my-drawer" title="This is a drawer">...</wv-filter-text>