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: 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 #

Called when the picker colors are changed.

The data property of the event handler argument contains the list of color values as hex strings.