import { DatatableColumnModel } from './datatable-column'; export class DatatableModel { /** * It is array with rows json objects. */ rows: Array; /** * It is array with columns definitions. Described in DatatableColumnModel documentation. */ columns: Array; /** * It is height of each row. Can be numeric (nember will be transformed to pixels) or 'auto'. Optional. Not set by deault. Required when row expanding is set. */ rowHeight?: any; /** * It is rows quontity per page. Type number. Optional. */ limit?: number; /* * It means if Filter must be builded to Datatable. Type boolean. Optional. Default false. */ filtering?: boolean = true; /** *

It is object with properties for rows details. Optional.

*/ expandable?: { /** *

It is boolean value to build or not row details.

*/ value: boolean; /** *

It is nember value and mean height of row in pixels. Required.

*/ detailsHeight: number; }; /** * Array for selected items. Optional. */ selected?: Array = []; /** * It is the constructor for the Datatable component. It takes the values from component to create the Datatable object. */ constructor(values: Object = {}) { Object.assign(this, values); } }