angular2-data-table
Version:
angular2-data-table is a Angular2 component for presenting large and complex data.
34 lines (33 loc) • 907 B
TypeScript
/**
* Returns the columns by pin.
* @param {array} cols
*/
export declare function columnsByPin(cols: any[]): {
left: any;
center: any;
right: any;
};
/**
* Returns the widths of all group sets of a column
* @param {object} groups
* @param {array} all
*/
export declare function columnGroupWidths(groups: any, all: any): {
left: number;
center: number;
right: number;
total: number;
};
/**
* Calculates the total width of all columns and their groups
* @param {array} columns
* @param {string} prop width to get
*/
export declare function columnTotalWidth(columns: any[], prop?: string): number;
/**
* Calculates the total width of all columns and their groups
* @param {array} columns
* @param {string} property width to get
*/
export declare function columnsTotalWidth(columns: any, prop?: any): number;
export declare function columnsByPinArr(val: any): any[];