Skip to main content

CSS ClassName

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

new Grid({
columns: ['Name', 'Email', 'Phone Number'],
search: true,
data: [
['John', '[email protected]', '(353) 01 222 3333'],
['Mark', '[email protected]', '(01) 22 888 4444'],
['Eoin', '[email protected]', '(05) 10 878 5554'],
['Nisen', '[email protected]', '313 333 1923']
],
className: {
td: 'my-custom-td-class',
table: 'custom-table-classname'
}
});

info

See className config for more details.

Last updated on by Afshin Mehrabani