MultipleChoiceBlockPicker#
Basic MultipleChoiceBlockPicker
Inherits: LayoutControl
Properties
-
available_colors(list[ColorValue] | None) –A list of available colors to pick from.
-
colors(list[ColorValue] | None) –The currently selected colors.
Events
-
on_colors_change(ControlEventHandler[MultipleChoiceBlockPicker] | None) –Called when the picker colors are changed.
Example#
Properties#
available_colors
class-attribute
instance-attribute
#
available_colors: list[ColorValue] | None = None
A list of available colors to pick from.
colors
class-attribute
instance-attribute
#
colors: list[ColorValue] | None = None
The currently selected colors.
Events#
on_colors_change
class-attribute
instance-attribute
#
on_colors_change: (
ControlEventHandler[MultipleChoiceBlockPicker] | None
) = 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.
