Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Restricting values entered in ColorPickerItem

    I want to restrict user to enter only valid colors in ColorPickerItem. e.g #112233.

    I have tried using setmask but ColorPickerItem doesn't support this, also if i set setShowValueIconOnly(true) then changed event doesn't get called and I need this to set some values.

    #2
    You can use the onChangeHandler() to restrict values, if not valid cancel the event. If you want to restrict what values are possible from the dialog popup you would have to use JSNI, but possible.

    Comment

    Working...
    X