Skip to main content

data

To define the rows and columns of the table.

new Grid({
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']
]
});

or

new Grid({
data: [
{ name: 'John', email: '[email protected]' },
{ name: 'Mark', email: '[email protected]' },
{ name: 'Eoin', email: '[email protected]' },
{ name: 'Nisen', email: '[email protected]' }
]
});