Directive that automatically generates table columns based on the first row's properties.
Instead of manually declaring columns, attach this directive to the table and it will introspect the datasource and create text columns for each property.
<ui-table-view [datasource]="adapter" uiAutogenerateColumns></ui-table-view> Copy
<ui-table-view [datasource]="adapter" uiAutogenerateColumns></ui-table-view>
With options:
<ui-table-view [datasource]="adapter" [uiAutogenerateColumns]="options"></ui-table-view> Copy
<ui-table-view [datasource]="adapter" [uiAutogenerateColumns]="options"></ui-table-view>
Readonly
Configuration for column auto-generation.
Directive that automatically generates table columns based on the first row's properties.
Instead of manually declaring columns, attach this directive to the table and it will introspect the datasource and create text columns for each property.
Example
With options: