Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorPicker

Hierarchy

Index

Methods

addClass

  • addClass(cls: string): this

css

  • css(css: object): this
  • Parameters

    • css: object
      • [key: string]: any

    Returns this

getColor

  • getColor(): string
  • Returns string

getElem

  • getElem(): JQuery

getValue

  • getValue(): string
  • Returns string

getWrappedControl

  • getWrappedControl(): object | null

hidePicker

  • hidePicker(): void
  • Returns void

off

  • off(event: string, callback: function): this
  • Parameters

    • event: string
    • callback: function
        • (e?: JQueryEventObject): void
        • Parameters

          • Optional e: JQueryEventObject

          Returns void

    Returns this

on

  • on(event: string, callback: function): this
  • Parameters

    • event: string
    • callback: function
        • (e?: JQueryEventObject): void
        • Parameters

          • Optional e: JQueryEventObject

          Returns void

    Returns this

removeClass

  • removeClass(cls: string): this

setColor

  • setColor(value: TColor): void
  • Parameters

    Returns void

setColorSelectorClass

  • setColorSelectorClass(className: string): void
  • Parameters

    • className: string

    Returns void

setEnabled

  • setEnabled(enabled: boolean): void

setTitle

  • setTitle(title: string): this

setTooltip

  • setTooltip(value: string | boolean, placement?: undefined | string, trigger?: undefined | string): void
  • Parameters

    • value: string | boolean
    • Optional placement: undefined | string
    • Optional trigger: undefined | string

    Returns void

setValue

  • setValue(value: TColor): void
  • Parameters

    Returns void

setVisible

  • setVisible(visible: boolean): this

showPicker

  • showPicker(): void
  • Returns void

trigger

  • trigger(event: string, extraParameters?: any): this
  • Parameters

    • event: string
    • Optional extraParameters: any

    Returns this

Static HSB2RGB

Static HSL2RGB

Static colorObjectToText

  • colorObjectToText(color: TColor): string
  • Parameters

    Returns string

Static colorTextToObject

Static readableColor

  • readableColor(textColor: TColor): string
  • Parameters

    Returns string

Static wrapControl