import { OnInit, TemplateRef, ElementRef, EventEmitter, Renderer } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { ToolbarModel } from '../../models/toolbar/toolbar.model'; import { ToolbarStylingModel } from '../../models/toolbar/toolbar-styling.model'; import { TemplateService } from '../../services/template-service/template.service'; /** *
Toolbar component based on Angular Material Toolbar and has a lot of extanded options
*Example of using:
***/ export declare class CfToolbarComponent extends CfCoreComponent implements OnInit { elementRef: ElementRef; renderer: Renderer; /** @hidden * Binding class to Toolbar host element */ toolbarMaximizedClass: string; /** *<cf-toolbar [properties]="myToolbar" [styling]="myToolbarStyles">*</cf-toolbar>*
Example of model:
*{{'{'}}
* type: 'info',
* info: {{'{'}}
* show: true,
* icon: this.myInfoIcon,
* order: 0
* {{'}'}},
* content: {{'{'}}
* title: 'This is my toolbar title',
* template: this.myToolbarTemplate,
* order: 1
* {{'}'}},
* actions: {{'{'}}
* show: true,
* menu: this.myToobarMenu,
* order: 2
* {{'}'}},
* help: {{'{'}}
* show: true,
* icon: this.myHelpIcon,
* order: 3
* {{'}'}},
* close: {{'{'}}
* show: true,
* icon: this.myCloseIcon,
* order: 4
* {{'}'}},
* maximization: {{'{'}}
* show: true,
* maximized: false,
* maximizeIcon: this.myMaxIcon,
* minimizeIcon: this.myMinIcon,
* order: 5
* {{'}'}},
* expandable: {{'{'}}
* show: true,
* expanded: true,
* icon: this.myexpandableIcon
* order: 6
* {{'}'}}
* {{'}'}}
*
* toolbar?: {{'{'}} // Styling for md-toolbar
* info?: {{'{'}} // Styling for info section
* class?: string; // Classes for info section
* dynamicClass?: any; // Dynamic classes for info section
* icon?: IconStylingModel; // IconStylingModel for info icon
* {{'}'}};
* content?: {{'{'}} // Styling for content section
* class?: string; // Classes for content section
* dynamicClass?: any; // Dynamic classes for content section
* title?: StylingModel; // StylingModel for title
* template?: StylingModel; // StylingModel for template
* {{'}'}};
* actions?: {{'{'}} // Styling for actions section
* class?: string; // Classes for actions section
* dynamicClass?: any; // Dynamic classes for actions section
* menu?: MenuStylingModel; // MenuStylingModel for menu section
* {{'}'}};
* maximizing?: {{'{'}} // Styling for maximizing section
* class?: string; // Classes for maximizing section
* dynamicClass?: any; // Dynamic classes for maximizing section
* minimizeIcon?: IconStylingModel; // IconStylingModel for minimize icon
* maximizeIcon?: IconStylingModel; // IconStylingModel for maximize icon
* {{'}'}};
* expandable?: {{'{'}} // Styling for expandable section
* class?: string; // Classes for expandable section
* dynamicClass?: any; // Dynamic classes for expandable section
* icon?: IconStylingModel; // IconStylingModel for expandable icon
* {{'}'}};
* help?: {{'{'}} // Styling for help section
* class?: string; // Classes for help section
* dynamicClass?: any; // Dynamic classes for help section
* icon?: IconStylingModel; // IconStylingModel for help icon
* {{'}'}};
* close?: {{'{'}} // Styling for close section
* class?: string; // Classes for close section
* dynamicClass?: any; // Dynamic classes for close section
* icon?: IconStylingModel; // IconStylingModel for close icon
* {{'}'}};
* {{'}'}};
*
*/
styling: ToolbarStylingModel;
/**
* Type of the toolbar. Can be: info, warning, error.
*/
type: string;
/**
* Wheather to show info section.
*/
showInfo: boolean;
/**
* Order of info section. Means flex system order property. Order numbers can be: 0, 1, 2, 3, 4, 5, 6.
*/
infoOrder: number;
/**
* Info icon name.
*/
infoIconName: string;
/**
* Info icon size.
*/
infoIconSize: string;
/**
* Wheather to show content section.
*/
showContent: boolean;
/**
* Title of the toolbar content section.
*/
title: string;
/**
* Template of the toolbar content section.
*/
template: TemplateRef