Forest Admin - API reference
Preparing search index...
@forestadmin/datasource-toolkit
ConditionTree
Class ConditionTree
Abstract
Hierarchy (
View Summary
)
ConditionTree
ConditionTreeBranch
ConditionTreeLeaf
Index
Constructors
constructor
Accessors
projection
Methods
apply
every
Leaf
for
Each
Leaf
inverse
match
nest
replace
Fields
replace
Leafs
replace
Leafs
Async
some
Leaf
to
Plain
Object
unnest
Constructors
constructor
new
ConditionTree
()
:
ConditionTree
Returns
ConditionTree
Accessors
Abstract
projection
get
projection
()
:
Projection
Returns
Projection
Methods
apply
apply
(
records
:
RecordData
[]
,
collection
:
Collection
,
timezone
:
string
,
)
:
RecordData
[]
Parameters
records
:
RecordData
[]
collection
:
Collection
timezone
:
string
Returns
RecordData
[]
Abstract
every
Leaf
everyLeaf
(
handler
:
LeafTester
)
:
boolean
Parameters
handler
:
LeafTester
Returns
boolean
Abstract
for
Each
Leaf
forEachLeaf
(
handler
:
LeafCallback
)
:
void
Parameters
handler
:
LeafCallback
Returns
void
Abstract
inverse
inverse
()
:
ConditionTree
Returns
ConditionTree
Abstract
match
match
(
record
:
RecordData
,
collection
:
Collection
,
timezone
:
string
)
:
boolean
Parameters
record
:
RecordData
collection
:
Collection
timezone
:
string
Returns
boolean
nest
nest
(
prefix
:
string
)
:
ConditionTree
Parameters
prefix
:
string
Returns
ConditionTree
replace
Fields
replaceFields
(
handler
:
(
field
:
string
)
=>
string
)
:
ConditionTree
Parameters
handler
:
(
field
:
string
)
=>
string
Returns
ConditionTree
Abstract
replace
Leafs
replaceLeafs
(
handler
:
LeafReplacer
,
bind
?:
unknown
)
:
ConditionTree
Parameters
handler
:
LeafReplacer
Optional
bind
:
unknown
Returns
ConditionTree
Abstract
replace
Leafs
Async
replaceLeafsAsync
(
handler
:
AsyncLeafReplacer
,
bind
?:
unknown
,
)
:
Promise
<
ConditionTree
>
Parameters
handler
:
AsyncLeafReplacer
Optional
bind
:
unknown
Returns
Promise
<
ConditionTree
>
Abstract
some
Leaf
someLeaf
(
handler
:
LeafTester
)
:
boolean
Parameters
handler
:
LeafTester
Returns
boolean
Abstract
to
Plain
Object
toPlainObject
()
:
PlainConditionTree
Returns
PlainConditionTree
unnest
unnest
()
:
ConditionTree
Returns
ConditionTree
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
projection
Methods
apply
every
Leaf
for
Each
Leaf
inverse
match
nest
replace
Fields
replace
Leafs
replace
Leafs
Async
some
Leaf
to
Plain
Object
unnest
Forest Admin - API reference
Loading...