ETextButton Text button
Examples
Text button
Properties
accessibleNamestringName read by assistive technologies; provide a readable name for controls without text.
textautoInsertSpaceboolInsert a space between two Chinese characters in button text.
Inherited; default falseautofocusboolFocus automatically when shown, subject to availability and popup lifecycle.
falsebgboolShow a background for a text button.
falsecheckableboolAllow clicks to toggle the checked state.
falsecheckedboolWhether the control is checked or active.
falsecircleboolUse circular button styling.
falsecolorcolorCustom color; a transparent value usually selects theme or semantic colors.
Dynamic bindingdashedboolUse a dashed border.
Inherited; default falsedurationintDuration 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.
Dynamic bindingiconSourceintIcon used by the component.
EIcons.*
0 (no icon)
0isOpenBackgroundColorboolShow a background for a text button.
falseleftIconboolPlace 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)
0minHeightintMinimum control height in pixels; follows size by default.
Dynamic bindingnativeTypestringButton behavior for normal actions, submitting or resetting a form.
button
submit
reset
"button"paddingSpacingintGap between text and icon in pixels.
6plainboolUse plain colors.
trueprogressrealProgress value used by progress animation or notification progress display.
-1roundboolUse rounded pill button styling.
Inherited; default falsesizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaultstrokeWidthintBorder, divider or progress track width in pixels.
3styleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
Inherited; default EStyle.DefaulttextstringDisplayed text.
""textButtonboolUse text button styling.
truevisibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthdisplayTextstringRead onlyDisplay text after formatting, progress or badge rules.
Computed at runtime