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
Pagination
<div id="jslarge" class="pagination pagination-large"></div>
<div id="jssmall" class="pagination pagination-small"></div>
<div id="jsmini" class="pagination pagination-mini"></div>
YUI().use(
'aui-pagination',
function(Y) {
new Y.Pagination(
{
after: {
changeRequest: function(event) {
console.log(
'page:', event.state.page,
'getOffsetPageNumber:', this.getOffsetPageNumber()
);
}
},
boundingBox: '#jslarge',
offset: 999,
page: 1,
strings: {
next: '»',
prev: '«'
},
total: 5
}
).render();
new Y.Pagination(
{
boundingBox: '#jssmall',
total: 15
}
).render();
new Y.Pagination(
{
boundingBox: '#jsmini',
total: 15
}
).render();
}
);