import { OnInit, ElementRef } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { DatatableColumnModel } from '../../models/datatable/datatable-column.model'; import { DatatableColumnStylingModel } from '../../models/datatable/datatable-column-styling.model'; import { TemplateService } from '../../services/template-service/template.service'; /** *

CfDatatableColumn component is used to define name and template for each column

*
 * 
 * <cf-datatable-column></cf-datatable-column>
 * 
 * 
*/ export declare class CfDatatableColumnComponent extends CfCoreComponent implements OnInit { /**@hidden */ elementRef: ElementRef; /** * Template for column header cell */ header: any; /** * Template for column cell */ content: any; /** *

name: string

* Column name *

width: string

* Column width *

headerAlignment: string

* Column header cell alignment. Can be: start, center, end. Default: start. *

cellAlignment: string

* Column row cell alignment. Can be: start, center, end. Default: start. *

sortBy: string

* Row property name by which rows will be sorted. Default: ''. *

Example:

*
{{'{'}}
     *	name: 'Column name',
     *	width: '20%',
     *	headerAlignment: 'end',
     *  cellAlignment: 'start',
     *	sortBy: 'name'
     * {{'}'}}
*/ properties: DatatableColumnModel; /** *

dynamicClass: function() -> string, // Function that returns name of the class

*

class: string // Name of the css class selector

*

themeColor: string // primary/accent/warn

*
     *{{'{'}}
     *  // Container surrounding the all datatable elelemnts
     *  container: {{'{'}} dynamicClass, class {{'}'}},
     *  // Header
     *  header: {{'{'}} dynamicClass, class {{'}'}}
     *}
     * 
*

Example:

*

     *  new DatatableColumnStylingModel({{'{'}}
     *    header: {{'{'}}class: 'column-header-class'{{'}'}},
     *    container: {{'{'}}class: 'column-content-class'{{'}'}}
     *  {{'}'}})
     * 
*/ styling: DatatableColumnStylingModel; /** * Name for column */ name: string; /** * Width of column */ width: string; /** * Header alignment. Can be: start, center, end. */ headerAlignment: string; /** * Cell alignment. Can be: start, center, end. */ cellAlignment: string; /** * Row property name by which rows will be sorted */ sortBy: string; /**@hidden*/ /**@hidden */ constructor(/**@hidden */ elementRef: ElementRef, /**@hidden */ templateService: TemplateService); /**@hidden * Init all component data */ ngOnInit(): void; }