ColorPicker 1.0
Creates a simple color picker form field for mootools. It should work with versions 1.1, 1.2 and 1.3 (with compatibility) of mootools. It includes some basic validation to ensure that a valid color is entered.
Details
- Author
- Fiona Coulter
- Current version
- 1.0
- GitHub
- fcoulter/Color-Picker
- Downloads
- 1701
- Category
- Utilities
- Tags
- Report
- GitHub Issues
Releases
Dependencies
- _self_/_current_: core/1.2: [Class, Class.Extras, Element, Element.Event,Element.Style,Fx,Fx.Tween]
How to use
The script requires a form field element, pass this to the color picker script along with the options, eg assuming your form field has the id cpicker:-
window.addEvent('domready', function(){
var colorInput = document.id('cpicker');
var cpicker = new ColorPicker(colorInput,{cellWidth: 8, cellHeight: 12})
});
Discuss
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus