3 'remoto!stdlib:js/widgets/widget.js',
5 'remoto!stdlib:js/modal/chooseColor/jscolor.js',
6 'remoto!stdlib:js/include/utils.js',
7 'remoto!stdlib:js/include/color.js',
41 if (!
value ||
value.toString().startsWith(
"RANDOM"))
44 setTimeout(
function() {
64 if (this._colorJq)
return this._colorJq;
68 this._widgetJq.hide();
70 this._colorJq = $(
"<div class='widgetInputField' id='"+this._id+
"_color' style='height:18px; border:var(--Border1); margin-bottom:2px; box-sizing:border-box; font-size:11px; line-height:18px; min-width:28px;' tabindex='-1' type='text'> </div>");
72 if (this._options.class)
73 this._colorJq.addClass(this._options.class);
90 this._colorJq.css(
"cursor",
"pointer");
93 valueElement: this._widgetJq[0],
94 styleElement: this._colorJq[0],
98 this._color =
new jscolor.color(this._colorJq[0],ops);
114 var v = this._widgetJq ? this._widgetJq.val() :
null;
133 this._color.hidePicker();
148 colorWidget.prototype.__defineSetter__(
"value",
function(v)
150 widget.prototype.__lookupSetter__(
"value").call(
this,v);
154 this._widgetJq.val(this._value);
156 this._color.importColor();
167 colorWidget.prototype.__defineGetter__(
"value",
function()
169 return widget.prototype.__lookupGetter__(
"value").call(
this);
178 colorWidget.prototype.__defineGetter__(
"visibleWidget",
function()
180 return this._colorJq;
Javascript color object class.
getter html
Get the html color representation of this object.
randomHSV(huecenter, huerange, sat, val)
Create a random HSV color based on a hue range and saturation and value.
setter value
a setter DOCME
setter widget
a setter DOCME
Utility functions for javascript clients.