Skip to content
Robert Hjalmers edited this page Jul 21, 2017 · 8 revisions

Pass data, settings and configuration to the table and override default values using the following inputs:

Attribute Type Usage
gtSettings array used for passing settings
gtFields array used for passing field definitions
gtData array used for passing data
gtTotals array used for defining column totals (see configuration) for more info (OPTIONAL)
gtClasses string used for adding classes to table element (OPTIONAL)
gtTexts object use to override default texts (see default texts) (OPTIONAL)
gtOptions object use to override default table options (see available options) (OPTIONAL)
gtInfo object used for passing record info to table (lazy loading only) (OPTIONAL)
gtRowComponent component used for passing expanding row component to table (OPTIONAL)

Usage:

<generic-table [gtClasses]="'table-hover'" [gtSettings]="configObject.settings" [gtFields]="configObject.fields" [(gtData)]="configObject.data" [gtRowComponent]="expandedRow" [gtOptions]="{lazyLoad:true}"></generic-table>