Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorPickerPanel

Color picker panel.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new ColorPickerPanel(title: string, colors: string[], currentColor?: string, icon?: string, id?: 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 image markup).

    • Optional id: string

      panel ID.

    Returns ColorPickerPanel

Properties

Protected Optional _id

_id: string

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.

uiStyleSettings

uiStyleSettings: IStyleSettings

UI style settings for colors, etc.

Accessors

id

  • get id(): string | undefined

Methods

getUi

  • getUi(): HTMLDivElement

Generated using TypeDoc