carbon-components
Version:
Carbon Components is a component library for IBM Cloud
70 lines (67 loc) • 1.36 kB
JavaScript
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['module'], factory);
} else if (typeof exports !== "undefined") {
factory(module);
} else {
var mod = {
exports: {}
};
factory(mod);
global.paginationConfig = mod.exports;
}
})(this, function (module) {
'use strict';
var itemsPerPageChoices = [{
value: '10',
label: '10',
selected: true
}, {
value: '20',
label: '20'
}, {
value: '30',
label: '30'
}, {
value: '40',
label: '40'
}, {
value: '50',
label: '50'
}];
var pageNumberChoices = [{
value: '1',
label: '1',
selected: true
}, {
value: '2',
label: '2'
}, {
value: '3',
label: '3'
}, {
value: '4',
label: '4'
}, {
value: '5',
label: '5'
}];
module.exports = {
variants: [{
name: 'default',
label: 'V1',
context: {
itemsPerPageChoices: itemsPerPageChoices
},
notes: '\n Pagination is used for splitting up content or data into several pages, with a control for navigating to the next or previous page.\n '
}, {
name: 'v2',
label: 'V2',
context: {
version: 'v2',
itemsPerPageChoices: itemsPerPageChoices,
pageNumberChoices: pageNumberChoices
}
}]
};
});