lists/src/filter/filter_value.ts
This class represents a filter to apply to a list.
Properties |
Methods |
operation |
operation:
|
Type : string
|
selectedOption |
selectedOption:
|
Type : FilterOption | undefined
|
showAll |
showAll:
|
Default value : true
|
showUnknown |
showUnknown:
|
Default value : true
|
value |
value:
|
Type : string
|
equals | ||||||||
equals(other: FilterValue | undefined)
|
||||||||
This method tests if the provided FilterValue is equal to this value by checking the following: First test if other is null --> false If there is a selected option, test if it is equal to the other selected option If that is the case, test the relevant properties from this object against the other object
Parameters :
Returns :
boolean
boolean indicating if the provided instance is equal to this instance or not |
isValid |
isValid()
|
Returns whether this FilterValue instance is valid, meaning that the relevant properties are defined/contain a value. A filter is valid if a column is set and an operation has been chosen and either unknown is checked or a value must be chosen.
Returns :
boolean
boolean indicating whether this instance is valid or not |