Skip to main content

MantineNotToggleProps

Defined in: packages/mantine/src/MantineNotToggle.tsx:9

Extends​

Methods​

handleOnChange()​

handleOnChange(checked: boolean): void

Defined in: packages/react-querybuilder/src/types/props.ts:307

Parameters​

ParameterType
checkedboolean

Returns​

void

Inherited from​

NotToggleProps.handleOnChange

Properties​

checked?​

optional checked?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:306

Inherited from​

NotToggleProps.checked


className?​

optional className?: string

Defined in: packages/react-querybuilder/src/types/props.ts:76

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​

NotToggleProps.className


color?​

optional color?: DefaultMantineColor

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:18

Key of theme.colors or any valid CSS color to set input color in checked state

Default​

theme.primaryColor

Inherited from​

Partial.color


context?​

optional context?: any

Defined in: packages/react-querybuilder/src/types/props.ts:97

Container for custom props that are passed to all components.

Inherited from​

NotToggleProps.context


description?​

optional description?: ReactNode

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:30

Description displayed below the label

Inherited from​

Partial.description


disabled?​

optional disabled?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:92

Disables the control.

Inherited from​

NotToggleProps.disabled


error?​

optional error?: ReactNode

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:32

Error displayed below the label

Inherited from​

Partial.error


id?​

optional id?: string

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:10

Id used to bind input and label, if not passed, unique id will be generated instead

Inherited from​

Partial.id


label?​

optional label?: ReactNode

Defined in: packages/react-querybuilder/src/types/props.ts:308

Inherited from​

NotToggleProps.label


labelPosition?​

optional labelPosition?: "left" | "right"

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:28

Position of the label relative to the input

Default​

'right'

Inherited from​

Partial.labelPosition


level​

level: number

Defined in: packages/react-querybuilder/src/types/props.ts:84

The level of the current group. Always equal to path.length.

Inherited from​

NotToggleProps.level


offLabel?​

optional offLabel?: ReactNode

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:14

Inner label when the Switch is in unchecked state

Inherited from​

Partial.offLabel


onLabel?​

optional onLabel?: ReactNode

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:16

Inner label when the Switch is in checked state

Inherited from​

Partial.onLabel


path​

path: Path

Defined in: packages/react-querybuilder/src/types/props.ts:80

Path to this subcomponent's rule/group within the query.

Inherited from​

NotToggleProps.path


radius?​

optional radius?: MantineRadius

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:22

Key of theme.radius or any valid CSS value to set border-radius

Default​

'xl'

Inherited from​

Partial.radius


rootRef?​

optional rootRef?: Ref<HTMLDivElement>

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:34

Assigns ref of the root element

Inherited from​

Partial.rootRef


ruleGroup​

ruleGroup: RuleGroupTypeAny

Defined in: packages/react-querybuilder/src/types/props.ts:309

Inherited from​

NotToggleProps.ruleGroup


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 | [FlexibleOption, ...FlexibleOption[]] | ((operator: string) => ValueSources | [FlexibleOption, ...FlexibleOption[]]); }, string>

Defined in: packages/react-querybuilder/src/types/props.ts:109

All subcomponents receive the configuration schema as a prop.

Inherited from​

NotToggleProps.schema


size?​

optional size?: string & { } | MantineSize

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:20

Controls size of all elements

Inherited from​

Partial.size


testID?​

optional testID?: string

Defined in: packages/react-querybuilder/src/types/props.ts:105

Test ID for this component.

Inherited from​

NotToggleProps.testID


thumbIcon?​

optional thumbIcon?: ReactNode

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:26

Icon inside the thumb of the switch

Inherited from​

Partial.thumbIcon


title?​

optional title?: string

Defined in: packages/react-querybuilder/src/types/props.ts:88

The title/tooltip for this control.

Inherited from​

NotToggleProps.title


validation?​

optional validation?: boolean | ValidationResult

Defined in: packages/react-querybuilder/src/types/props.ts:101

Validation result of the parent rule/group.

Inherited from​

NotToggleProps.validation


withThumbIndicator?​

optional withThumbIndicator?: boolean

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:36

If set, displays a colored dot inside the thumb that matches the track background color

Default​

true

Inherited from​

Partial.withThumbIndicator


wrapperProps?​

optional wrapperProps?: ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & DataAttributes

Defined in: node_modules/@mantine/core/lib/components/Switch/Switch.d.ts:24

Props passed down to the root element

Inherited from​

Partial.wrapperProps


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.