UseFields<F>
Defined in: packages/react-querybuilder/src/hooks/useFields.ts:13
Type Parameters
| Type Parameter |
|---|
F extends FullField |
Properties
defaultField
defaultField: {[
key:string]:unknown;className?:Classname;comparator?:string| (f: { [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | string[] | FlexibleOption<...>[] | (string | FlexibleOpt...,operator:string) =>boolean;defaultOperator?:string;defaultValue?:any;disabled?:boolean;id?:string;inputType?:InputType|null;label:string;matchModes?:boolean|MatchMode[] |FlexibleOption<MatchMode>[];name:string;operators?:FlexibleOptionList<{[key:string]:unknown;disabled?:boolean;label:string;name:string;value:string; }> |string[] |FlexibleOption<string>[] | string | FlexibleOption<string>[];placeholder?:string;subproperties?:FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | string[] | FlexibleOption<...>[] | (string | FlexibleOpt...>;validator?:RuleValidator;value:string;valueEditorType?:ValueEditorType| (operator:string) =>ValueEditorType;values?:FlexibleOptionList<{[key:string]:unknown;disabled?:boolean;label:string;name:string;value:string; }>;valueSources?:ValueSources|ValueSourceFlexibleOptions| (operator:string) => ValueSources | ValueSourceFlexibleOptions; }
Defined in: packages/react-querybuilder/src/hooks/useFields.ts:14
Index Signature
[key: string]: unknown
className?
optionalclassName:Classname
comparator?
optionalcomparator:string| (f: { [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | string[] | FlexibleOption<...>[] | (string | FlexibleOpt...,operator:string) =>boolean
defaultOperator?
optionaldefaultOperator:string
defaultValue?
optionaldefaultValue:any
disabled?
optionaldisabled:boolean
id?
optionalid:string
inputType?
optionalinputType:InputType|null
label
label:
string
matchModes?
optionalmatchModes:boolean|MatchMode[] |FlexibleOption<MatchMode>[]
name
name:
string
operators?
optionaloperators:FlexibleOptionList<{[key:string]:unknown;disabled?:boolean;label:string;name:string;value:string; }> |string[] |FlexibleOption<string>[] | string | FlexibleOption<string>[]
placeholder?
optionalplaceholder:string
subproperties?
optionalsubproperties:FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | string[] | FlexibleOption<...>[] | (string | FlexibleOpt...>
Properties of items in the value.
validator?
optionalvalidator:RuleValidator
value
value:
string
valueEditorType?
optionalvalueEditorType:ValueEditorType| (operator:string) =>ValueEditorType
values?
optionalvalues:FlexibleOptionList<{[key:string]:unknown;disabled?:boolean;label:string;name:string;value:string; }>
valueSources?
optionalvalueSources:ValueSources|ValueSourceFlexibleOptions| (operator:string) => ValueSources | ValueSourceFlexibleOptions
fieldMap
fieldMap:
Partial<FullOptionRecord<FullField>>
Defined in: packages/react-querybuilder/src/hooks/useFields.ts:16
fields
fields:
FullOptionList<F>
Defined in: packages/react-querybuilder/src/hooks/useFields.ts:15
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.