Options
All
  • Public
  • Public/Protected
  • All
Menu

颜色处理的功能

Hierarchy

  • Color

Index

Constructors

constructor

Properties

Static pickrJsPath

pickrJsPath: string = "base/colorpicker/pickr.es5.min.js"

pickr.es5.min.js文件的路径 https://github.com/Simonwep/pickr

Static pickrStylePath

pickrStylePath: string = "base/colorpicker/monolith.min.css"

pickr主题文件的路径 https://github.com/Simonwep/pickr

Methods

Static showColorPicker

  • showColorPicker(obj: any, defaultValue: any, onColorChange: any): any
  • 弹出颜色选择控件

    Parameters

    • obj: any

      需要弹出的目标控件

    • defaultValue: any

      默认颜色

    • onColorChange: any

      颜色变化的监听

    Returns any

    Ext.Promise

Static toColor

  • toColor(obj: any, defaultValue?: any): string
  • 转换颜色格式值,符合:#ffffff 格式

    Parameters

    • obj: any

      待转换的颜色

    • Optional defaultValue: any

      默认颜色

    Returns string