data
To define the rows and columns of the table.
optional
(eitherdata
,from
orserver
must be provided)- Type:
TCell[][]
,{ [key: string]: TCell }[]
orFunction
- Example: Hello World, Import JSON, Async import and Dynamic import
new Grid({
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']
]
});
or
new Grid({
data: [
{ name: 'John', email: 'john@example.com' },
{ name: 'Mark', email: 'mark@gmail.com' },
{ name: 'Eoin', email: 'eo3n@yahoo.com' },
{ name: 'Nisen', email: 'nis900@gmail.com' }
]
});