File

lists/src/filter/filter_value.ts

Description

This class represents a filter to apply to a list.

Index

Properties
Methods

Properties

operation
operation: string
Type : string
selectedOption
selectedOption: FilterOption | undefined
Type : FilterOption | undefined
showAll
showAll:
Default value : true
showUnknown
showUnknown:
Default value : true
value
value: string
Type : string

Methods

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 :
Name Type Optional Description
other FilterValue | undefined No

the FilterValue to test equality with

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

result-matching ""

    No results matching ""