table()
table<
T>(items,renderer,columnNames?):HTMLTableElement
Defined in: js-api/ui.ts:539
Creates a visual table based on [items] and [renderer].
Note: the ind passed to [renderer] is 1-based (HTML table row indexing), not 0-based.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Default value |
|---|---|---|
items | T[] | undefined |
renderer | ((item, ind) => any) | null | undefined |
columnNames | string[] | null | null |
Returns
HTMLTableElement