Skip to main content

CSS ClassName

className config can be used to add CSS classNames to a Paginator.js instance:

new Paginator({
columns: ['Name', 'Email', 'Phone Number'],
data: [
['John', 'john@example.com', '(353) 01 222 3333'],
['Mark', 'mark@gmail.com', '(01) 22 888 4444'],
['Eoin', 'eo3n@yahoo.com', '(05) 10 878 5554'],
['Nisen', 'nis900@gmail.com', '313 333 1923'],
],
className: {
td: 'my-custom-td-class',
table: 'custom-table-classname',
},
});

info

See className config for more details.