EFloatButton Float button
Examples
Icon action
Square with text
Badge and tooltip
Status styles
Disabled action
Properties
accessibleNamestringName read by assistive technologies; provide a readable name for controls without text.
textautoInsertSpaceboolInsert a space between two Chinese characters in button text.
EControlConfig.optionFor(control, "button", "autoInsertSpace", false)autofocusboolFocus automatically when shown, subject to availability and popup lifecycle.
falsebadgevarBadge content or configuration displayed on the button.
Text, number or object
Object fields:
value, isDot, max
showZero, hidden
color, offset
""bgboolShow a background for a text button.
falsecheckableboolAllow clicks to toggle the checked state.
falsecheckedboolWhether the control is checked or active.
falsecircleboolUse circular button styling.
shape !== "square"colorcolorCustom color; a transparent value usually selects theme or semantic colors.
EPaletteManager.BasePalette.transparentcontentaliasDefault content slot; aliases button text in EFloatButton.
control.textdashedboolUse a dashed border.
EControlConfig.optionFor(control, "button", "dashed", false)displayTextstringRead onlyDisplay text after formatting, progress or badge rules.
ComputeddurationintDuration of one loading-icon rotation in milliseconds.
2600enabledboolAllow interaction; false disables the control.
truefontfontFont settings for the family, size and text style.
Common fields:
family, pixelSize, pointSize
bold, italic, weight
underline, strikeout
letterSpacing, wordSpacing
application fontheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighticonComponentComponentComponent slot for custom icon; null uses the default content. See this page’s examples for delegate context.
nulliconSizeintSize of the icon, option or interactive part in pixels.
EDefaultConfig.iconSize(control.size)iconSourceintIcon used by the component.
EIcons.*
0 (no icon)
UnsetleftIconboolPlace the icon to the left of the text.
falselinkboolUse link button styling.
falseloadingboolWhether the component is loading.
falseloadingComponentComponentComponent slot for custom loading state; null uses the default content. See this page’s examples for delegate context.
nullloadingIconSourceintIcon used by the component.
EIcons.*
0 (no icon)
UnsetminHeightintMinimum control height in pixels; follows size by default.
48nativeTypestringButton behavior for normal actions, submitting or resetting a form.
button
submit
reset
"button"paddingSpacingintGap between text and icon in pixels.
6plainboolUse plain colors.
EControlConfig.optionFor(control, "button", "plain", false)progressrealProgress value used by progress animation or notification progress display.
-1roundboolUse rounded pill button styling.
EControlConfig.optionFor(control, "button", "round", false)shapestringShape of the floating button.
circle
square
"circle"sizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
EControlConfig.sizeFor(control)strokeWidthintBorder, divider or progress track width in pixels.
3styleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EControlConfig.styleFor(control, "button", "type", EStyle.Default)textstringDisplayed text.
""textButtonboolUse text button styling.
link || EControlConfig.optionFor(control, "button", "text", false)tooltipstringTooltip text displayed on hover.
""visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidth