Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorPickerPanel

Color picker panel.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ColorPickerPanel(title: string, colors: string[], currentColor?: string, icon?: string): ColorPickerPanel
  • Creates a color picker panel.

    Parameters

    • title: string

      panel title.

    • colors: string[]

      available colors.

    • Optional currentColor: string

      currently selected color.

    • Optional icon: string

      panel button icon (SVG imager markup).

    Returns ColorPickerPanel

Properties

colors

colors: string[] = []

icon

icon: string

Panel button icon as an SVG markup.

Optional onColorChanged

onColorChanged: ColorChangeHandler

Color change event handler.

title

title: string

Panel name/title.

Methods

getUi

  • getUi(): HTMLDivElement

Generated using TypeDoc