Skip to content

MultipleChoiceBlockPicker#

A color picker that lets users choose multiple colors from a grid of available colors.

MultipleChoiceBlockPicker

Basic MultipleChoiceBlockPicker

Inherits: LayoutControl

Properties

Events

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.