application.colorselect.js

来自「echo3 很炫的ajax框架技术 js 演示demo ajax j2ee 里」· JavaScript 代码 · 共 32 行

JS
32
字号
/** * ColorSelect component: an input component which displays a hue selector and * an integrated value/saturation selector to enable the selection of a 24-bit * RGB color. May not contain child components. *  * @cp {#Color} color the selected color * @sp {Boolean} displayValue flag indicating whether hex color value should be displayed * @sp {#Extent} hueWidth the width of the hue selector * @sp {#Extent} saturationHeight the height of the saturation selector * @sp {#Extent} valueWidth the width of the value selector */Extras.ColorSelect = Core.extend(Echo.Component, {        $static: {        /** Default value width: 12em. */        DEFAULT_VALUE_WIDTH: "12em",        /** Default saturation height: 12em. */        DEFAULT_SATURATION_HEIGHT: "12em",        /** Default hue width: 2em. */        DEFAULT_HUE_WIDTH: "2em"    },        $load: function() {        Echo.ComponentFactory.registerType("Extras.ColorSelect", this);    },        /** @see Echo.Component#componentType */    componentType: "Extras.ColorSelect"});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?