import { OnInit, EventEmitter, ElementRef } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { IconModel } from '../../models/icon/icon.model'; import { DatatableRowsExpanderModel } from '../../models/datatable/datatable-rows-expander.model'; import { DatatableRowsExpanderStylingModel } from '../../models/datatable/datatable-rows-expander-styling.model'; import { TemplateService } from '../../services/template-service/template.service'; /** *

CfDatatableRowsExpander component is used to expand/collapse all rows

*
 * 
 * <cf-datatable-rows-expander></cf-datatable-rows-expander>
 * 
 * 
*/ export declare class CfDatatableRowsExpanderComponent extends CfCoreComponent implements OnInit { elementRef: ElementRef; /** *
{{'{'}}
     *  expandAllIcon: IconModel,
     *  collapseAllIcon: IconModel,
     * {{'}'}}
*

expandAllIcon: IconModel

* CfIcon component for the main expanding icon. *

collapseAllIcon: IconModel

* CfIcon component for the main collapsing icon. *

Example:

*
{{'{'}}
     *    expandAllIcon: this.myAllRowsExpandIcon,
     *    collapseAllIcon: this.myAllRowsCollapseIcon,
     * {{'}'}}
*/ properties: DatatableRowsExpanderModel; /** *

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

*

class: string // Name of the css class selector

*

themeColor: string // primary/accent/warn

*
     *{{'{'}}
     *  // Main container
     *  container: {{'{'}}
     *    dynamicClass,
     *    class
     *  {{'}'}},
     *  // Expanding icon styling
     *  expandAllIcon: IconStylingModel, //refer to icon component
     *  // Collapsing icon styling
     *  collapseAllIcon: IconStylingModel, //refer to icon component
     *}
     * 
*

Example:

*

     *  new DatatableRowsExpanderStylingModel({{'{'}}
     *    container: {{'{'}}class: 'my-datatable-rows-expander'{{'}'}},
     *    expandAllIcon: new IconStylingModel({{'{'}} icon: {{'{'}}themeColor: "primary", class: "rotated"{{'}'}} {{'}'}}),
     *    collapseAllIcon: new IconStylingModel({{'{'}} icon: {{'{'}}themeColor: "primary", class: "rotated"{{'}'}} {{'}'}}),
     *  })
     * 
*/ styling: DatatableRowsExpanderStylingModel; /** * CfIcon component for expanding icon */ expandAllIcon: IconModel; /** * CfIcon component for collapsing icon */ collapseAllIcon: IconModel; /** @hidden * Emit events on icons clicks: expand or collapse */ onToggle: EventEmitter<{}>; /** @hidden*/ constructor(elementRef: ElementRef, /**@hidden */ templateService: TemplateService); /** @hidden*/ ngOnInit(): void; /**@hidden * Function to run event emiter and send toggle type */ toggle(type: any): void; }