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
Parameter | Type |
---|---|
prop | Exclude <keyof RuleType , "id" | "path" > |
Returns
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
Parameter | Type |
---|---|
event ? | MouseEvent |
_context ? | any |
Returns
void
shiftRuleUp()
shiftRuleUp: (
event
?,_context
?) =>void
Parameters
Parameter | Type |
---|---|
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
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.