| Page 1 of 1 | [ 3 posts ] |
|
How do you set Colorpicker default color?
JeffI am using the example at http://developer.yahoo.com/yui/examples ... ple11.html I tried setting the Hex value in YAHOO.widget.ColorPicker(hex: fff000..., that did not work I tried setting YAHOO.util.Dom.setStyle("current-colorBbg", "backgroundColor", '#fff000'); that did not work I don't see an example of this, it needs to have this feature; I'm sure it does, but I can't figure it out today. http://vetshelpcenter.com/ |
|
Try setting rgb in the constructor.
Code: var cp = new YAHOO.widget.ColorPicker({ rgb: YAHOO.util.Color.hex2rgb('fff000') }); Which version of YUI are you using? |
|
YUI version 2.7.0
That worked; not sure why hex didn't work. Thanks |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group