Options
All
  • Public
  • Public/Protected
  • All
Menu

Optional settings that can be passed to the color picker when it is initialized on an input element.

Hierarchy

  • CreateOptions

Index

Properties

Methods

Properties

color

color: string | RgbColor | HsbColor

The color to display initially.

Methods

onChange

  • Called when the color is changed.

    Parameters

    Returns void

onHide

  • Called before the color picker is hidden.

    Parameters

    • colorPicker: HTMLElement

      DOM element of the color picker to be hidden.

    Returns boolean

    If false is returned, prevents the color picker from being hidden.

onShow

  • Called before the color picker is shown.

    Parameters

    • colorPicker: HTMLElement

      DOM element of the color picker to be shown.

    Returns boolean

    If false is returned, prevents the color picker from being displayed.

Generated using TypeDoc