UNPKG

@nova-ui/dashboards

Version:

Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and

52 lines (51 loc) 1.84 kB
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from "@angular/core"; import { EventBus, IEvent } from "@nova-ui/bits"; import { IHeaderLinkProvider } from "./types"; import { PizzagnaService } from "../../../pizzagna/services/pizzagna.service"; import { WidgetToDashboardEventProxyService } from "../../../services/widget-to-dashboard-event-proxy.service"; export declare class WidgetHeaderComponent implements OnInit, OnDestroy, AfterViewInit { private eventBus; pizzagnaService: PizzagnaService; changeDetector: ChangeDetectorRef; private eventProxy; private linkProvider; static lateLoadKey: string; componentId: string; editMode: boolean; /** * Boolean which shows or hides the edit button */ editable: boolean; /** * Boolean which shows or hides the remove widget button */ removable: boolean; /** * Boolean which adds ability to collapse widget header */ collapsible: boolean; reloadable: boolean; title: string; subtitle: string; hideMenu: boolean; url: string; /** * Boolean which tells what state the widget header is in if collapsible */ collapsed: boolean; get hostClass(): boolean; widgetHeaderCustomElement: ElementRef; withCustomElement: boolean; private onDestroy$; get state(): "expanded" | "collapsed"; linkTooltip: string; constructor(eventBus: EventBus<IEvent>, pizzagnaService: PizzagnaService, changeDetector: ChangeDetectorRef, eventProxy: WidgetToDashboardEventProxyService, linkProvider: IHeaderLinkProvider); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; removeWidget(): void; toggleCollapsed(): void; onEditWidget(): void; onReloadData(): void; prepareLink($event: MouseEvent): boolean; }