PrimeNotToggleProps
Defined in: packages/prime/src/PrimeNotToggle.tsx:9
Extends
NotToggleProps.Omit<ComponentPropsWithoutRef<typeofInputSwitch>,"checked"|"onChange">
Methods
handleOnChange()
handleOnChange(
checked:boolean):void
Defined in: packages/react-querybuilder/src/types/props.ts:306
Parameters
| Parameter | Type |
|---|---|
checked | boolean |
Returns
void
Inherited from
Properties
autoFocus?
optionalautoFocus?:boolean
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:77
When present, it specifies that the component should automatically get focus on load.
Default Value
false
Inherited from
Omit.autoFocus
checked?
optionalchecked?:boolean
Defined in: packages/react-querybuilder/src/types/props.ts:305
Inherited from
children?
readonlyoptionalchildren?:ReactNode
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:155
Used to get the child elements of the component.
Inherited from
Omit.children
className?
optionalclassName?:string
Defined in: packages/react-querybuilder/src/types/props.ts:75
CSS classNames to be applied.
This is string and not Classname because the Rule
and RuleGroup components run clsx() to produce the className
that gets passed to each subcomponent.
Inherited from
context?
optionalcontext?:any
Defined in: packages/react-querybuilder/src/types/props.ts:96
Container for custom props that are passed to all components.
Inherited from
disabled?
optionaldisabled?:boolean
Defined in: packages/react-querybuilder/src/types/props.ts:91
Disables the control.
Inherited from
falseValue?
optionalfalseValue?:any
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:116
Value in unchecked state.
Default Value
false
Inherited from
Omit.falseValue
id?
optionalid?:string
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:72
Unique identifier of the element.
Inherited from
Omit.id
inputId?
optionalinputId?:string
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:93
Identifier of the input element.
Inherited from
Omit.inputId
inputRef?
optionalinputRef?:Ref<HTMLInputElement>
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:81
Reference of the input element.
Inherited from
Omit.inputRef
invalid?
optionalinvalid?:boolean
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:121
When present, it specifies that the component should have invalid state style.
Default Value
false
Inherited from
Omit.invalid
label?
optionallabel?:ReactNode
Defined in: packages/react-querybuilder/src/types/props.ts:307
Inherited from
level
level:
number
Defined in: packages/react-querybuilder/src/types/props.ts:83
The level of the current group. Always equal to path.length.
Inherited from
name?
optionalname?:string
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:97
Name of the input element.
Inherited from
Omit.name
onBlur?
optionalonBlur?: (event:FocusEvent<HTMLInputElement>) =>void
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:150
Callback to invoke when the element loses focus.
Parameters
| Parameter | Type | Description |
|---|---|---|
event | FocusEvent<HTMLInputElement> | Browser event |
Returns
void
Inherited from
Omit.onBlur
onFocus?
optionalonFocus?: (event:FocusEvent<HTMLInputElement>) =>void
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:145
Callback to invoke when the element receives focus.
Parameters
| Parameter | Type | Description |
|---|---|---|
event | FocusEvent<HTMLInputElement> | Browser event |
Returns
void
Inherited from
Omit.onFocus
path
path:
Path
Defined in: packages/react-querybuilder/src/types/props.ts:79
Path to this subcomponent's rule/group within the query.
Inherited from
pt?
optionalpt?:InputSwitchPassThroughOptions
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:160
Uses to pass attributes to DOM elements inside the component.
Inherited from
Omit.pt
ptOptions?
optionalptOptions?:PassThroughOptions
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:165
Used to configure passthrough(pt) options of the component.
Inherited from
Omit.ptOptions
ruleGroup
ruleGroup:
RuleGroupTypeAny
Defined in: packages/react-querybuilder/src/types/props.ts:308
Inherited from
schema
schema:
Schema<{[key:string]:unknown;className?:Classname;comparator?:string| ((f: { [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: string[] | FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: 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?:string[] |FlexibleOptionList<{[key:string]:unknown;disabled?:boolean;label:string;name:string;value: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?: string[] | FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: 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); },string>
Defined in: packages/react-querybuilder/src/types/props.ts:108
All subcomponents receive the configuration schema as a prop.
Inherited from
style?
optionalstyle?:CSSProperties
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:85
Inline style of the element.
Inherited from
Omit.style
tabIndex?
optionaltabIndex?:number
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:101
Index of the element in tabbing order.
Inherited from
Omit.tabIndex
testID?
optionaltestID?:string
Defined in: packages/react-querybuilder/src/types/props.ts:104
Test ID for this component.
Inherited from
title?
optionaltitle?:string
Defined in: packages/react-querybuilder/src/types/props.ts:87
The title/tooltip for this control.
Inherited from
tooltip?
optionaltooltip?:string
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:130
Content of the tooltip.
Inherited from
Omit.tooltip
tooltipOptions?
optionaltooltipOptions?:TooltipOptions
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:135
Configuration of the tooltip, refer to the tooltip documentation for more information.
Inherited from
Omit.tooltipOptions
trueValue?
optionaltrueValue?:any
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:111
Value in checked state.
Default Value
true
Inherited from
Omit.trueValue
unstyled?
optionalunstyled?:boolean
Defined in: node_modules/primereact/inputswitch/inputswitch.d.ts:170
When enabled, it removes component related styles in the core.
Default Value
false
Inherited from
Omit.unstyled
validation?
optionalvalidation?:boolean|ValidationResult
Defined in: packages/react-querybuilder/src/types/props.ts:100
Validation result of the parent rule/group.
Inherited from
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.