ValueMatcher
Value matcher. See usage example: https://public.datagrok.ai/js/samples/data-frame/value-matching/value-matcher
Constructors
new ValueMatcher()
new ValueMatcher(
dart):ValueMatcher
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Source
Properties
| Property | Modifier | Type | Default value |
|---|---|---|---|
dart | private | any | undefined |
supportedTypes | static | string[] | ... |
Accessors
operator
getoperator():string
Operation (such as '<', 'EQUALS', 'BEFORE', etc).
Returns
string
Source
pattern
getpattern():string
Expression as entered by user (such as '>42')
Returns
string
Source
Methods
match()
match(
value):boolean
Whether [x] passes the filter specified by the [expression]. See also validate for the explanation.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
boolean
Source
validate()
validate(
value):null|string
Validates the specified conditions. Returns null, if valid, error string otherwise
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
null | string
Source
bool()
staticbool(pattern):ValueMatcher
Parameters
| Parameter | Type |
|---|---|
pattern | string |
Returns
Source
dateTime()
staticdateTime(pattern):ValueMatcher
Parameters
| Parameter | Type |
|---|---|
pattern | string |
Returns
Source
forColumn()
staticforColumn(column,pattern):ValueMatcher
Creates a matcher for the specified column.
Parameters
| Parameter | Type |
|---|---|
column | Column<any, any> |
pattern | string |
Returns
Source
forType()
staticforType(type,pattern):ValueMatcher
Creates a matcher for the specified data type.
Parameters
| Parameter | Type |
|---|---|
type | string |
pattern | string |
Returns
Source
numerical()
staticnumerical(pattern):ValueMatcher
Parameters
| Parameter | Type |
|---|---|
pattern | string |
Returns
Source
string()
staticstring(pattern):ValueMatcher
Parameters
| Parameter | Type |
|---|---|
pattern | string |