Skip to main content

SchemaNative<F, O>

Configuration options passed in the schema prop from QueryBuilder to each subcomponent.

Extends

  • Schema<F, O>.WithOptionalStyleSheets

Type Parameters

Type Parameter
F extends FullField
O extends string

Properties

accessibleDescriptionGenerator

accessibleDescriptionGenerator: AccessibleDescriptionGenerator

Inherited from

Schema.accessibleDescriptionGenerator

Defined in

react-querybuilder/src/types/propsUsingReact.ts:364


addRuleToNewGroups

addRuleToNewGroups: boolean

Inherited from

Schema.addRuleToNewGroups

Defined in

react-querybuilder/src/types/propsUsingReact.ts:372


autoSelectField

autoSelectField: boolean

Inherited from

Schema.autoSelectField

Defined in

react-querybuilder/src/types/propsUsingReact.ts:370


autoSelectOperator

autoSelectOperator: boolean

Inherited from

Schema.autoSelectOperator

Defined in

react-querybuilder/src/types/propsUsingReact.ts:371


classNames

classNames: Classnames

Inherited from

Schema.classNames

Defined in

react-querybuilder/src/types/propsUsingReact.ts:349


combinators

combinators: FullCombinator<string>[] | OptionGroup<FullCombinator<string>>[]

Inherited from

Schema.combinators

Defined in

react-querybuilder/src/types/propsUsingReact.ts:350


controls

controls: Required<SetNonNullable<Partial<object>, "notToggle" | "dragHandle" | "valueSourceSelector" | "ruleGroup" | "rule" | "shiftActions" | "actionElement" | "addGroupAction" | "addRuleAction" | "cloneGroupAction" | "cloneRuleAction" | "combinatorSelector" | "fieldSelector" | "inlineCombinator" | "lockGroupAction" | "lockRuleAction" | "operatorSelector" | "removeGroupAction" | "removeRuleAction" | "ruleGroupBodyElements" | "ruleGroupHeaderElements" | "valueEditor" | "valueSelector">>

Inherited from

Schema.controls

Defined in

react-querybuilder/src/types/propsUsingReact.ts:351


disabledPaths

disabledPaths: Path[]

Inherited from

Schema.disabledPaths

Defined in

react-querybuilder/src/types/propsUsingReact.ts:378


enableDragAndDrop

enableDragAndDrop: boolean

Inherited from

Schema.enableDragAndDrop

Defined in

react-querybuilder/src/types/propsUsingReact.ts:373


fieldMap

fieldMap: Partial<Record<GetOptionIdentifierType<F>, F>>

Inherited from

Schema.fieldMap

Defined in

react-querybuilder/src/types/propsUsingReact.ts:348


fields

fields: FullOptionList<F>

Inherited from

Schema.fields

Defined in

react-querybuilder/src/types/propsUsingReact.ts:347


independentCombinators

independentCombinators: boolean

Inherited from

Schema.independentCombinators

Defined in

react-querybuilder/src/types/propsUsingReact.ts:375


listsAsArrays

listsAsArrays: boolean

Inherited from

Schema.listsAsArrays

Defined in

react-querybuilder/src/types/propsUsingReact.ts:376


parseNumbers

parseNumbers: ParseNumbersPropConfig

Inherited from

Schema.parseNumbers

Defined in

react-querybuilder/src/types/propsUsingReact.ts:377


qbId

qbId: string

Inherited from

Schema.qbId

Defined in

react-querybuilder/src/types/propsUsingReact.ts:346


showCloneButtons

showCloneButtons: boolean

Inherited from

Schema.showCloneButtons

Defined in

react-querybuilder/src/types/propsUsingReact.ts:368


showCombinatorsBetweenRules

showCombinatorsBetweenRules: boolean

Inherited from

Schema.showCombinatorsBetweenRules

Defined in

react-querybuilder/src/types/propsUsingReact.ts:365


showLockButtons

showLockButtons: boolean

Inherited from

Schema.showLockButtons

Defined in

react-querybuilder/src/types/propsUsingReact.ts:369


showNotToggle

showNotToggle: boolean

Inherited from

Schema.showNotToggle

Defined in

react-querybuilder/src/types/propsUsingReact.ts:366


showShiftActions

showShiftActions: boolean

Inherited from

Schema.showShiftActions

Defined in

react-querybuilder/src/types/propsUsingReact.ts:367


styles?

optional styles: WrapEachPropertyInStyleProp<QueryBuilderNativeStyles>

Inherited from

WithOptionalStyleSheets.styles

Defined in

native/src/types.ts:27


suppressStandardClassnames

suppressStandardClassnames: boolean

Inherited from

Schema.suppressStandardClassnames

Defined in

react-querybuilder/src/types/propsUsingReact.ts:379


validationMap

validationMap: ValidationMap

Inherited from

Schema.validationMap

Defined in

react-querybuilder/src/types/propsUsingReact.ts:374

Methods

createRule()

createRule(): RuleType<string, string, any, string>

Returns

RuleType<string, string, any, string>

Inherited from

Schema.createRule

Defined in

react-querybuilder/src/types/propsUsingReact.ts:352


createRuleGroup()

createRuleGroup(ic?): RuleGroupTypeAny

Parameters

ParameterType
ic?boolean

Returns

RuleGroupTypeAny

Inherited from

Schema.createRuleGroup

Defined in

react-querybuilder/src/types/propsUsingReact.ts:353


dispatchQuery()

dispatchQuery(query): void

Parameters

ParameterType
queryRuleGroupTypeAny

Returns

void

Inherited from

Schema.dispatchQuery

Defined in

react-querybuilder/src/types/propsUsingReact.ts:354


getInputType()

getInputType(field, operator, meta): null | InputType

Parameters

ParameterType
fieldstring
operatorstring
metaobject
meta.fieldDataF

Returns

null | InputType

Inherited from

Schema.getInputType

Defined in

react-querybuilder/src/types/propsUsingReact.ts:360


getOperators()

getOperators(field, meta): FullOperator<string>[] | OptionGroup<FullOperator<string>>[]

Parameters

ParameterType
fieldstring
metaobject
meta.fieldDataF

Returns

FullOperator<string>[] | OptionGroup<FullOperator<string>>[]

Inherited from

Schema.getOperators

Defined in

react-querybuilder/src/types/propsUsingReact.ts:356


getQuery()

getQuery(): undefined | RuleGroupTypeAny

Returns

undefined | RuleGroupTypeAny

Inherited from

Schema.getQuery

Defined in

react-querybuilder/src/types/propsUsingReact.ts:355


getRuleClassname()

getRuleClassname(rule, misc): Classname

Parameters

ParameterType
ruleRuleType<string, string, any, string>
miscobject
misc.fieldDataF

Returns

Classname

Inherited from

Schema.getRuleClassname

Defined in

react-querybuilder/src/types/propsUsingReact.ts:362


getRuleGroupClassname()

getRuleGroupClassname(ruleGroup): Classname

Parameters

ParameterType
ruleGroupRuleGroupTypeAny

Returns

Classname

Inherited from

Schema.getRuleGroupClassname

Defined in

react-querybuilder/src/types/propsUsingReact.ts:363


getValueEditorSeparator()

getValueEditorSeparator(field, operator, meta): ReactNode

Parameters

ParameterType
fieldstring
operatorstring
metaobject
meta.fieldDataF

Returns

ReactNode

Inherited from

Schema.getValueEditorSeparator

Defined in

react-querybuilder/src/types/propsUsingReact.ts:358


getValueEditorType()

getValueEditorType(field, operator, meta): ValueEditorType

Parameters

ParameterType
fieldstring
operatorstring
metaobject
meta.fieldDataF

Returns

ValueEditorType

Inherited from

Schema.getValueEditorType

Defined in

react-querybuilder/src/types/propsUsingReact.ts:357


getValues()

getValues(field, operator, meta): WithUnknownIndex<Option<string> & FullOption<string>>[] | OptionGroup<WithUnknownIndex<Option<string> & FullOption<string>>>[]

Parameters

ParameterType
fieldstring
operatorstring
metaobject
meta.fieldDataF

Returns

WithUnknownIndex<Option<string> & FullOption<string>>[] | OptionGroup<WithUnknownIndex<Option<string> & FullOption<string>>>[]

Inherited from

Schema.getValues

Defined in

react-querybuilder/src/types/propsUsingReact.ts:361


getValueSources()

getValueSources(field, operator, meta): ValueSources

Parameters

ParameterType
fieldstring
operatorstring
metaobject
meta.fieldDataF

Returns

ValueSources

Inherited from

Schema.getValueSources

Defined in

react-querybuilder/src/types/propsUsingReact.ts:359


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.