MultipleChoiceBlockPicker#
Basic MultipleChoiceBlockPicker
Inherits: LayoutControl
Properties
-
available_colors(Optional[list[ColorValue]]) –A list of available colors to pick from.
-
colors(Optional[list[ColorValue]]) –The currently selected colors.
Events
-
on_colors_change(Optional[ControlEventHandler[MultipleChoiceBlockPicker]]) –Called when the picker colors are changed.
Example#
Properties#
available_colors
class-attribute
instance-attribute
#
available_colors: Optional[list[ColorValue]] = None
A list of available colors to pick from.
colors
class-attribute
instance-attribute
#
colors: Optional[list[ColorValue]] = None
The currently selected colors.
Events#
on_colors_change
class-attribute
instance-attribute
#
on_colors_change: Optional[
ControlEventHandler[MultipleChoiceBlockPicker]
] = None
Called when the picker colors are changed.
The data property of the event handler argument contains
the list of color values as hex strings.
