Examples
List of modules
-
Ace Editor
Affix
Alert
Audio
Button
Carousel
Char Counter
Color Picker
Data Table
Datepicker
Diagram Builder
Dropdown
Form Builder
Form Validator
I/O
Image Cropper
Image Viewer
Modal
Node
Pagination
Popover
Progress Bar
Rating
Scheduler
Scrollspy
Sortable Layout
Sortable List
Tabview
Timepicker
Toggler
Toolbar
Tooltip
TreeView
Video
Viewport
Color Picker
<input id="myColorPickerPopover" class="form-control" type="text" value="Click to select a color">
YUI().use(
'aui-color-picker-popover',
function(Y) {
var colorPicker = new Y.ColorPickerPopover(
{
trigger: '#myColorPickerPopover',
zIndex: 2
}
).render();
colorPicker.on('select',
function(event) {
event.trigger.setStyle('backgroundColor', event.color);
}
);
}
);