QueryBuilderProps<RG, F, O, C>
QueryBuilderProps<
RG,F,O,C> =RGextendsRuleGroupType<infer R> |RuleGroupTypeIC<infer R> ?QueryBuilderContextProps<F,GetOptionIdentifierType<O>> & {accessibleDescriptionGenerator?:AccessibleDescriptionGenerator;baseCombinator?:Record<string,unknown>;baseField?:Record<string,unknown>;baseOperator?:Record<string,unknown>;combinators?:FlexibleOptionListProp<C>;context?:any;defaultQuery?:RG;disabled?:boolean|Path[];fields?:FlexibleOptionListProp<F> |BaseOptionMap<F>;getDefaultField?:GetOptionIdentifierType<F> | (fieldsData:FullOptionList<F>) =>string;getDefaultOperator?:GetOptionIdentifierType<O> | (field:GetOptionIdentifierType<F>,misc: {fieldData:F; }) =>string;idGenerator?: () =>string;independentCombinators?:boolean;maxLevels?:number;operators?:FlexibleOptionListProp<O>;parseNumbers?:ParseNumbersPropConfig;query?:RG;validator?:QueryValidator;getDefaultValue?:any;getInputType?:InputType|null;getMatchModes?:boolean|MatchMode[] |FlexibleOption<MatchMode>[];getOperators?:FlexibleOptionListProp<FullOperator<string>> |null;getRuleClassname?:Classname;getRuleGroupClassname?:Classname;getSubQueryBuilderProps?:QueryBuilderProps<GenericizeRuleGroupType<RG<RG>>, {[key:string]:unknown;disabled?:boolean;label:string;name:N;value:N; }, {[key:string]:unknown;disabled?:boolean;label:string;name:N;value:N; }, {[key:string]:unknown;disabled?:boolean;label:string;name:N;value:N; }>;getValueEditorSeparator?:ReactNode;getValueEditorType?:ValueEditorType;getValues?:FlexibleOptionListProp<{[key:string]:unknown;disabled?:boolean;label:string;name:N;value?:N; }>;getValueSources?:ValueSources|ValueSourceFlexibleOptions;onAddGroup?:boolean|RG<RG>;onAddRule?:boolean|RuleType<string,string,any,string>;onGroupGroup?:boolean|RG<RG>;onGroupRule?:boolean|RG<RG>;onLog?:void;onMoveGroup?:boolean|RG<RG>;onMoveRule?:boolean|RG<RG>;onQueryChange?:void;onRemove?:boolean; } :never
Defined in: packages/react-querybuilder/src/types/props.ts:788
Props for QueryBuilder.
Notes:
- Only one of
queryordefaultQueryshould be provided. Ifqueryis present, thendefaultQueryshould be undefined and vice versa. - If rendered initially with a
queryprop, thenquerymust be defined in every subsequent render or warnings will be logged (in non-production modes only).
Type Parameters
| Type Parameter | Description |
|---|---|
RG extends RuleGroupTypeAny | The type of the query object, inferred from either the query or defaultQuery prop. Must extend RuleGroupType or RuleGroupTypeIC. |
F extends FullField | The field type (see Field). |
O extends FullOperator | The operator type (see Operator). |
C extends FullCombinator | The combinator type (see Combinator). |
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.