InsertOptions
Defined in: packages/core/src/utils/queryTools.ts:490
Options for insert.
Properties
combinatorPreceding?
optionalcombinatorPreceding:string
Defined in: packages/core/src/utils/queryTools.ts:504
If the query extends RuleGroupTypeIC (i.e. the query has independent
combinators), then this combinator will be inserted before the new rule/group
if the parent group is not empty and the new rule/group is not the first in the
group (path.at(-1) > 0). This option will supersede combinators.
combinators?
optionalcombinators:OptionList
Defined in: packages/core/src/utils/queryTools.ts:497
If the query extends RuleGroupTypeIC (i.e. the query has independent
combinators), then the first combinator in this list will be inserted
before the new rule/group if the parent group is not empty. This option
is overridden by combinatorPreceding.
combinatorSucceeding?
optionalcombinatorSucceeding:string
Defined in: packages/core/src/utils/queryTools.ts:511
If the query extends RuleGroupTypeIC (i.e. the query has independent
combinators), then this combinator will be inserted after the new rule/group
if the parent group is not empty and the new rule/group is the first in the
group (path.at(-1) === 0). This option will supersede combinators.
idGenerator()?
optionalidGenerator: () =>string
Defined in: packages/core/src/utils/queryTools.ts:517
ID generator.
Returns
string
Default
generateID
replace?
optionalreplace:boolean
Defined in: packages/core/src/utils/queryTools.ts:521
When true, the new rule/group will replace the rule/group at path.
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.