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
Popover
<button id="myPopoverAnim" class="btn btn-primary">Popover with animation</button>
YUI().use(
'aui-popover',
'widget-anim',
function(A) {
var triggerAnim = A.one('#myPopoverAnim');
var popoverAnim = new A.Popover(
{
align: {
node: triggerAnim,
points:[A.WidgetPositionAlign.RC, A.WidgetPositionAlign.LC]
},
bodyContent: 'Body Content',
headerContent: 'Header content',
plugins: [A.Plugin.WidgetAnim],
position: 'left'
}
).render();
triggerAnim.on(
'click',
function() {
popoverAnim.set('visible', !popoverAnim.get('visible'));
}
);
}
);