Skip to main content

UseRule

UseRule: RuleProps & object

Type declaration

classNames

classNames: object

classNames.cloneRule

classNames.cloneRule: string

classNames.dragHandle

classNames.dragHandle: string

classNames.fields

classNames.fields: string

classNames.lockRule

classNames.lockRule: string

classNames.operators

classNames.operators: string

classNames.removeRule

classNames.removeRule: string

classNames.shiftActions

classNames.shiftActions: string

classNames.value

classNames.value: string

classNames.valueSource

classNames.valueSource: string

cloneRule

cloneRule: ActionElementEventHandler

fieldData

fieldData: FullField<string, string, string, Option<string>, Option<string>>

generateOnChangeHandler()

generateOnChangeHandler: (prop) => ValueChangeEventHandler

Parameters

ParameterType
propExclude<keyof RuleType, "id" | "path">

Returns

ValueChangeEventHandler

hideValueControls

hideValueControls: boolean

inputType

inputType: InputType | null

onChangeField

onChangeField: ValueChangeEventHandler

onChangeOperator

onChangeOperator: ValueChangeEventHandler

onChangeValue

onChangeValue: ValueChangeEventHandler

onChangeValueSource

onChangeValueSource: ValueChangeEventHandler

operators

operators: OptionList<FullOperator>

outerClassName

outerClassName: string

removeRule

removeRule: ActionElementEventHandler

shiftRuleDown()

shiftRuleDown: (event?, _context?) => void

Parameters

ParameterType
event?MouseEvent
_context?any

Returns

void

shiftRuleUp()

shiftRuleUp: (event?, _context?) => void

Parameters

ParameterType
event?MouseEvent
_context?any

Returns

void

toggleLockRule

toggleLockRule: ActionElementEventHandler

validationResult

validationResult: boolean | ValidationResult

valueEditorSeparator

valueEditorSeparator: React.ReactNode

valueEditorType

valueEditorType: ValueEditorType

values

values: FlexibleOptionList<Option<string>>

valueSourceOptions

valueSourceOptions: ValueSourceOptions

valueSources

valueSources: ValueSources

Defined in

packages/react-querybuilder/src/components/Rule.tsx:282


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.