InsertOptions
Options for insert.
Properties
combinatorPreceding?
optional
combinatorPreceding:string
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
.
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:429
combinators?
optional
combinators:OptionList
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
.
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:422
combinatorSucceeding?
optional
combinatorSucceeding:string
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
.
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:436
idGenerator()?
optional
idGenerator: () =>string
ID generator.
Returns
string
Default
generateID
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:442
replace?
optional
replace:boolean
When true
, the new rule/group will replace the rule/group at path
.
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:446
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.