svogv
Version:
A decorator based approach for model driven forms, including an advanced DataGrid and a TreeView component.
48 lines (47 loc) • 1.56 kB
TypeScript
import { Pipe } from '@angular/core';
import { StyleRules } from './datagridstyle.model';
/**
* Describe a header field with name, tooltip and other properties.
*/
export declare class DataGridHeaderModel {
text: string;
desc: string;
prop: string;
hidden: boolean;
/**
* The ctor
* @param text The text to display.
* @param desc A tooltip that is shown on mouseover (using the `title` attribute).
* @param prop The propertie's internal name.
* @param hidden optionally set a field as hidden and hence do not show in the grid.
*/
constructor(text: string, desc: string, prop: string, hidden?: boolean);
/**
* Hint from view model to select a certain template. Default is *text* (format as string).
*/
templateHint: string;
/**
* Custom styles directly applied to the grid's header on a per model base.
*/
uiHint: StyleRules;
/**
* Additional parameters some templates may use. Optional.
*/
templateHintParams?: any[];
/**
* Display the sort buttons and connect to sort functions. Default is `true`.
*/
isSortable: boolean;
/**
* An optional sort callback function that replaces the default `Array.prototype.sort`.
*/
sortCallback?: (a: any, b: any) => 1 | -1 | 0;
/**
* Provides a pipe for all data of this column. Default is no pipe (`undefined`).
*/
pipe: Pipe;
/**
* Optional parameters for a pipe.
*/
pipeParams?: any[];
}