EColorPicker Color picker
Examples
Color picker
Color selection
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.
falseclearableboolShow a clear action; ratings may be cleared by clicking the current score again.
truecolorcolorCustom color; a transparent value usually selects theme or semantic colors.
Dynamic bindingcolorFormatstringOutput format of the color value.
"hex" / "hex3""hex4" / "hex6""hex8" / "name""rgb" / "prgb""hsl" / "hsv"
"hex"commitOnConfirmboolCommit the color only when confirmed.
falsedashedboolUse a dashed border.
Inherited; default falsedurationintDuration of one loading-icon rotation in milliseconds.
2600emptyValuesvarValues treated as empty; includes undefined, null and the empty string by default.
Inherited; default [undefined, null, ""]enabledboolAllow 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)
0leftIconboolPlace 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.
Inherited; default falsepredefinevarArray of preset colors.
[]progressrealProgress value used by progress animation or notification progress display.
-1roundboolUse rounded pill button styling.
Inherited; default falseshowAlphaboolAllow editing alpha opacity.
falseshowButtonsboolShow confirm and clear buttons in the color panel.
truesizeintControl 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.
Inherited; default falsevalidateEventboolRequest enclosing-form validation when the value changes.
truevaluevarCurrent value; read or write through property bindings, with arrays for multiple or range selection.
Dynamic bindingvalueOnClearvarValue after clearing, or a function returning it; inherits configuration by default.
Inherited; default ""visibleboolWhether 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 runtimepopupaliasRead onlyReference to the internal menu, popup or tooltip.
Alias: colorPopupSignals
cleared()Emitted after the contents are cleared with the clear action.
changed(var value)Emitted when the selection changes; value is the new value.
confirmed(var value)Emitted on confirmation; value, when present, is the confirmed value.
picked(string value)Emitted after choosing a value; value is the chosen value.
activeChanged(var value)Emitted as the active color changes while picking; value is the unconfirmed color.
popupVisibleChanged(bool visible)Emitted when the picker panel opens or closes; visible is its visibility.
Methods
hide()Hide the popup content.
clear()Clear the current contents or selection.
cancel()Cancel the current operation.
confirm()Confirm and commit the current selection.
show()Show the popup content.