Skip to main content

className

To add CSS classname to a Paginator.js instance

className type has the following properties:

NameDescriptionType
container optionalclassName of the main containerstring
pageList optionalclassName of the pagination containerstring
active optionalclassName of the pagination current buttonstring
pageButton optionalclassName of pagination buttonsstring
nextButton optionalclassName of the pagination next buttonstring
prevButton optionalclassName of the pagination previous buttonstring
disable optionalclassName of the pagination disabled buttonstring
new Paginator({
data: [
['John', 'john@example.com', '(353) 01 222 3333'],
['Mark', 'mark@gmail.com', '(01) 22 888 4444'],
],
className: {
container: '',
active: 'active',
disable: 'disabled',
pageList: 'pages',
pageButton: 'page-item',
prevButton: 'page-prev',
nextButton: 'page-next'
}
});