MantineActionProps
Defined in: packages/mantine/src/MantineActionElement.tsx:9
Extends
ActionProps.Partial<ButtonProps>
Methods
handleOnClick()
handleOnClick(
e?:MouseEvent<Element,MouseEvent>,context?:any):void
Defined in: packages/react-querybuilder/src/types/props.ts:268
Triggers the action, e.g. the addition of a new rule or group. The second parameter
will be forwarded to the onAddRule or onAddGroup callback if appropriate.
Parameters
| Parameter | Type |
|---|---|
e? | MouseEvent<Element, MouseEvent> |
context? | any |
Returns
void
Inherited from
Properties
__size?
optional__size:string
Defined in: node_modules/@mantine/core/lib/core/Box/Box.d.ts:14
size property passed down the HTML element
Inherited from
Partial.__size
__vars?
optional__vars:CssVarsProp
Defined in: node_modules/@mantine/core/lib/core/Box/Box.d.ts:12
CSS variables defined on root component element
Inherited from
Partial.__vars
attributes?
optionalattributes: {inner?:Record<string,any>;label?:Record<string,any>;loader?:Record<string,any>;root?:Record<string,any>;section?:Record<string,any>; }
Defined in: node_modules/@mantine/core/lib/core/styles-api/styles-api.types.d.ts:36
inner?
optionalinner:Record<string,any>
label?
optionallabel:Record<string,any>
loader?
optionalloader:Record<string,any>
root?
optionalroot:Record<string,any>
section?
optionalsection:Record<string,any>
Inherited from
Partial.attributes
autoContrast?
optionalautoContrast:boolean
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:37
If set, adjusts text color based on background color for filled variant
Inherited from
Partial.autoContrast
bd?
optionalbd:StyleProp<Border<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:41
Border
Inherited from
Partial.bd
bdrs?
optionalbdrs:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:43
BorderRadius, theme key: theme.radius
Inherited from
Partial.bdrs
bg?
optionalbg:StyleProp<DefaultMantineColor>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:45
Background, theme key: theme.colors
Inherited from
Partial.bg
bga?
optionalbga:StyleProp<BackgroundAttachment|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:86
BackgroundAttachment
Inherited from
Partial.bga
bgp?
optionalbgp:StyleProp<BackgroundPosition<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:82
BackgroundPosition
Inherited from
Partial.bgp
bgr?
optionalbgr:StyleProp<BackgroundRepeat|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:84
BackgroundRepeat
Inherited from
Partial.bgr
bgsz?
optionalbgsz:StyleProp<BackgroundSize<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:80
BackgroundSize
Inherited from
Partial.bgsz
bottom?
optionalbottom:StyleProp<Bottom<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:91
Inherited from
Partial.bottom
c?
optionalc:StyleProp<DefaultMantineColor>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:47
Color
Inherited from
Partial.c
children?
optionalchildren:ReactNode
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:31
Button content
Inherited from
Partial.children
className?
optionalclassName:string
Defined in: packages/react-querybuilder/src/types/props.ts:74
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
classNames?
optionalclassNames:Partial<Record<ButtonStylesNames,string>> | (theme:MantineTheme,props:ButtonProps,ctx:unknown) =>StylesRecord<Payload["stylesNames"],DataType>
Defined in: node_modules/@mantine/core/lib/core/styles-api/styles-api.types.d.ts:33
Inherited from
Partial.classNames
color?
optionalcolor:DefaultMantineColor
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:15
Key of theme.colors or any valid CSS color
Default
theme.primaryColor
Inherited from
Partial.color
context?
optionalcontext:any
Defined in: packages/react-querybuilder/src/types/props.ts:95
Container for custom props that are passed to all components.
Inherited from
darkHidden?
optionaldarkHidden:boolean
Defined in: node_modules/@mantine/core/lib/core/Box/Box.d.ts:22
Determines whether component should be hidden in dark color scheme with display: none
Inherited from
Partial.darkHidden
data-disabled?
optionaldata-disabled:boolean
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:11
Inherited from
Partial.data-disabled
disabled?
optionaldisabled:boolean
Defined in: packages/react-querybuilder/src/types/props.ts:90
Disables the control.
Inherited from
disabledTranslation?
optionaldisabledTranslation:TranslationWithLabel
Defined in: packages/react-querybuilder/src/types/props.ts:273
Translation which overrides the regular label/title props when
the element is disabled.
Inherited from
ActionProps.disabledTranslation
display?
optionaldisplay:StyleProp<Display|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:94
Inherited from
Partial.display
ff?
optionalff:StyleProp<"text"|string& { } |"heading"|"monospace">
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:50
FontFamily
Inherited from
Partial.ff
flex?
optionalflex:StyleProp<Flex<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:95
Inherited from
Partial.flex
fs?
optionalfs:StyleProp<FontStyle|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:62
FontStyle
Inherited from
Partial.fs
fullWidth?
optionalfullWidth:boolean
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:23
If set, the button takes 100% width of its parent container
Default
false
Inherited from
Partial.fullWidth
fw?
optionalfw:StyleProp<FontWeight|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:54
FontWeight
Inherited from
Partial.fw
fz?
optionalfz:StyleProp<number | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | MantineFontSize>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:52
FontSize, theme key: theme.fontSizes
Inherited from
Partial.fz
gradient?
optionalgradient:MantineGradient
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:27
Gradient configuration used when variant="gradient"
Default
theme.defaultGradient
Inherited from
Partial.gradient
h?
optionalh:StyleProp<Height<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:74
Height, theme key: theme.spacing
Inherited from
Partial.h
hiddenFrom?
optionalhiddenFrom:MantineBreakpoint
Defined in: node_modules/@mantine/core/lib/core/Box/Box.d.ts:16
Breakpoint above which the component is hidden with display: none
Inherited from
Partial.hiddenFrom
inset?
optionalinset:StyleProp<Inset<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:93
Inherited from
Partial.inset
justify?
optionaljustify:JustifyContent
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:17
Sets justify-content of inner element, can be used to change distribution of sections and label
Default
'center'
Inherited from
Partial.justify
label?
optionallabel:ReactNode
Defined in: packages/react-querybuilder/src/types/props.ts:262
Visible text.
Inherited from
left?
optionalleft:StyleProp<Left<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:90
Inherited from
Partial.left
leftSection?
optionalleftSection:ReactNode
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:19
Content displayed on the left side of the button label
Inherited from
Partial.leftSection
level
level:
number
Defined in: packages/react-querybuilder/src/types/props.ts:82
The level of the current group. Always equal to path.length.
Inherited from
lh?
optionallh:StyleProp<number | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | MantineLineHeight>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:60
LineHeight, theme key: lineHeights
Inherited from
Partial.lh
lightHidden?
optionallightHidden:boolean
Defined in: node_modules/@mantine/core/lib/core/Box/Box.d.ts:20
Determines whether component should be hidden in light color scheme with display: none
Inherited from
Partial.lightHidden
loaderProps?
optionalloaderProps:LoaderProps
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:35
Props added to the Loader component (only visible when loading prop is set)
Inherited from
Partial.loaderProps
loading?
optionalloading:boolean
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:33
If set, the Loader component is displayed over the button
Inherited from
Partial.loading
lts?
optionallts:StyleProp<LetterSpacing<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:56
LetterSpacing
Inherited from
Partial.lts
m?
optionalm:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:5
Margin, theme key: theme.spacing
Inherited from
Partial.m
mah?
optionalmah:StyleProp<MaxHeight<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:78
MaxHeight, theme key: theme.spacing
Inherited from
Partial.mah
maw?
optionalmaw:StyleProp<MaxWidth<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:72
MaxWidth, theme key: theme.spacing
Inherited from
Partial.maw
mb?
optionalmb:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:13
MarginBottom, theme key: theme.spacing
Inherited from
Partial.mb
me?
optionalme:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:17
MarginInlineEnd, theme key: theme.spacing
Inherited from
Partial.me
mih?
optionalmih:StyleProp<MinHeight<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:76
MinHeight, theme key: theme.spacing
Inherited from
Partial.mih
miw?
optionalmiw:StyleProp<MinWidth<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:70
MinWidth, theme key: theme.spacing
Inherited from
Partial.miw
ml?
optionalml:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:19
MarginLeft, theme key: theme.spacing
Inherited from
Partial.ml
mod?
optionalmod:BoxMod
Defined in: node_modules/@mantine/core/lib/core/Box/Box.d.ts:24
Element modifiers transformed into data- attributes, for example, { 'data-size': 'xl' }, falsy values are removed
Inherited from
Partial.mod
mr?
optionalmr:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:21
MarginRight, theme key: theme.spacing
Inherited from
Partial.mr
ms?
optionalms:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:15
MarginInlineStart, theme key: theme.spacing
Inherited from
Partial.ms
mt?
optionalmt:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:11
MarginTop, theme key: theme.spacing
Inherited from
Partial.mt
mx?
optionalmx:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:9
MarginInline, theme key: theme.spacing
Inherited from
Partial.mx
my?
optionalmy:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:7
MarginBlock, theme key: theme.spacing
Inherited from
Partial.my
opacity?
optionalopacity:StyleProp<Opacity|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:48
Inherited from
Partial.opacity
p?
optionalp:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:23
Padding, theme key: theme.spacing
Inherited from
Partial.p
path
path:
Path
Defined in: packages/react-querybuilder/src/types/props.ts:78
Path to this subcomponent's rule/group within the query.
Inherited from
pb?
optionalpb:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:31
PaddingBottom, theme key: theme.spacing
Inherited from
Partial.pb
pe?
optionalpe:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:35
PaddingInlineEnd, theme key: theme.spacing
Inherited from
Partial.pe
pl?
optionalpl:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:37
PaddingLeft, theme key: theme.spacing
Inherited from
Partial.pl
pos?
optionalpos:StyleProp<Position|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:88
Position
Inherited from
Partial.pos
pr?
optionalpr:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:39
PaddingRight, theme key: theme.spacing
Inherited from
Partial.pr
ps?
optionalps:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:33
PaddingInlineStart, theme key: theme.spacing
Inherited from
Partial.ps
pt?
optionalpt:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:29
PaddingTop, theme key: theme.spacing
Inherited from
Partial.pt
px?
optionalpx:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:27
PaddingInline, theme key: theme.spacing
Inherited from
Partial.px
py?
optionalpy:StyleProp<MantineSpacing>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:25
PaddingBlock, theme key: theme.spacing
Inherited from
Partial.py
radius?
optionalradius:MantineRadius
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:25
Key of theme.radius or any valid CSS value to set border-radius
Default
theme.defaultRadius
Inherited from
Partial.radius
right?
optionalright:StyleProp<Right<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:92
Inherited from
Partial.right
rightSection?
optionalrightSection:ReactNode
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:21
Content displayed on the right side of the button label
Inherited from
Partial.rightSection
ruleOrGroup
ruleOrGroup:
RuleType<string,string,any,string> |RuleGroupTypeAny
Defined in: packages/react-querybuilder/src/types/props.ts:278
The RuleType or RuleGroupType/RuleGroupTypeIC associated with this element.
Inherited from
MantineActionProps.ruleOrGroup
rules?
optionalrules:RuleOrGroupArray
Defined in: packages/react-querybuilder/src/types/props.ts:282
Rules in this group (if the action element is for a group).
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?: 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; },string>
Defined in: packages/react-querybuilder/src/types/props.ts:107
All subcomponents receive the configuration schema as a prop.
Inherited from
size?
optionalsize:string& { } |MantineSize|"compact-xs"|"compact-sm"|"compact-md"|"compact-lg"|"compact-xl"
Defined in: node_modules/@mantine/core/lib/components/Button/Button.d.ts:13
Controls button height, font-size and horizontal padding
Default
'sm'
Inherited from
Partial.size
style?
optionalstyle:MantineStyleProp
Defined in: node_modules/@mantine/core/lib/core/Box/Box.d.ts:10
Inline style added to root component element, can subscribe to theme defined on MantineProvider
Inherited from
Partial.style
styles?
optionalstyles:Partial<Record<ButtonStylesNames,CSSProperties>> | (theme:MantineTheme,props:ButtonProps,ctx:unknown) =>StylesRecord<Payload["stylesNames"],DataType>
Defined in: node_modules/@mantine/core/lib/core/styles-api/styles-api.types.d.ts:34
Inherited from
Partial.styles
ta?
optionalta:StyleProp<TextAlign|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:58
TextAlign
Inherited from
Partial.ta
td?
optionaltd:StyleProp<TextDecoration<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:66
TextDecoration
Inherited from
Partial.td
testID?
optionaltestID:string
Defined in: packages/react-querybuilder/src/types/props.ts:103
Test ID for this component.
Inherited from
title?
optionaltitle:string
Defined in: packages/react-querybuilder/src/types/props.ts:86
The title/tooltip for this control.
Inherited from
top?
optionaltop:StyleProp<Top<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:89
Inherited from
Partial.top
tt?
optionaltt:StyleProp<TextTransform|undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:64
TextTransform
Inherited from
Partial.tt
unstyled?
optionalunstyled:boolean
Defined in: node_modules/@mantine/core/lib/core/styles-api/styles-api.types.d.ts:31
Inherited from
Partial.unstyled
validation?
optionalvalidation:boolean|ValidationResult
Defined in: packages/react-querybuilder/src/types/props.ts:99
Validation result of the parent rule/group.
Inherited from
variant?
optionalvariant:string& { } |ButtonVariant
Defined in: node_modules/@mantine/core/lib/core/styles-api/styles-api.types.d.ts:32
Inherited from
Partial.variant
vars?
optionalvars:PartialVarsResolver<{defaultComponent:"button";defaultRef:HTMLButtonElement;props:ButtonProps;staticComponents: {Group:MantineComponent<{props:ButtonGroupProps;ref:HTMLDivElement;stylesNames:"group";vars:ButtonGroupCssVariables; }>;GroupSection:MantineComponent<{props:ButtonGroupSectionProps;ref:HTMLDivElement;stylesNames:"groupSection";variant:ButtonVariant;vars:ButtonGroupSectionCssVariables; }>; };stylesNames:ButtonStylesNames;variant:ButtonVariant;vars:ButtonCssVariables; }>
Defined in: node_modules/@mantine/core/lib/core/styles-api/styles-api.types.d.ts:35
Inherited from
Partial.vars
visibleFrom?
optionalvisibleFrom:MantineBreakpoint
Defined in: node_modules/@mantine/core/lib/core/Box/Box.d.ts:18
Breakpoint below which the component is hidden with display: none
Inherited from
Partial.visibleFrom
w?
optionalw:StyleProp<Width<string|number> |undefined>
Defined in: node_modules/@mantine/core/lib/core/Box/style-props/style-props.types.d.ts:68
Width, theme key: theme.spacing
Inherited from
Partial.w
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.