data
To define the rows and columns of the table.
optional(eitherdata,fromorservermust be provided)- Type:
TCell[][],{ [key: string]: TCell }[]orFunction - Example: Hello World, Import JSON, Async import and Dynamic import
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]' }
]
});