@asi-ngtools/lib
Version:
This project is a little components library, simple to use, which will help you to simplify your project.
46 lines (45 loc) • 1.78 kB
TypeScript
import { AsiTableInliner } from './asi-table-inliner.directive';
import { EventEmitter, AfterContentInit, QueryList, OnInit } from '@angular/core';
import { AsiComponentTemplateTableHeaderDef, AsiComponentTemplateCellDef } from '../common/asi-component-template';
export declare class AsiTableColumn implements AfterContentInit, OnInit {
/** Column name (used to extract data from bean if cell template not defined) */
name: string;
/** name of the bean attribute used to sort the column */
sortName: string;
/** Libelle of the header (is template not defined) */
libelle: string;
/** ngIf for column */
showIf: boolean;
/** !ngif for column */
hideIf: boolean;
/** Sort in reserve */
inversSort: boolean;
/** Is the column sortable */
sortable: boolean;
/** Autosort this column when you give new data */
sortByDefault: boolean;
/** Add a class to this column */
columnClass: any;
/** The column will be inlined */
inlineColumn: boolean;
/** Type of the column (checkbox will display checkbox column) */
type: 'text' | 'checkbox';
/** If this function is define it's used to define a custom sort on column */
customSort: Function;
/** Event emitted when checkbox is checked */
onChecked: EventEmitter<any>;
/** Event emitted when the 'allcheckbox' is checked */
onAllChecked: EventEmitter<boolean>;
asc: boolean;
cellDef: AsiComponentTemplateCellDef;
headerDef: AsiComponentTemplateTableHeaderDef;
queryColumns: QueryList<AsiTableInliner>;
inliners: Array<AsiTableInliner>;
constructor();
ngOnInit(): void;
toggleSort(): boolean;
unsort(): void;
getAsc(): boolean;
getSortName(): string;
ngAfterContentInit(): void;
}