UNPKG

angular-bootstrap-md

Version:

<a href="http://mdbootstrap.com/docs/angular/getting-started/download/"><img src="https://mdbootstrap.com/img/Marketing/general/logo/medium/mdb-angular2.png"></a> # Angular Bootstrap with Material Design

79 lines (78 loc) 2.54 kB
import { EventEmitter, OnInit, OnDestroy, Renderer2, ElementRef, TemplateRef, ViewContainerRef } from '@angular/core'; import { PopoverConfig } from './popover.config'; import { ComponentLoaderFactory } from '../utils/component-loader/component-loader.factory'; import { PositioningService } from '../utils/positioning/positioning.service'; /** * A lightweight, extensible directive for fancy popover creation. */ export declare class PopoverDirective implements OnInit, OnDestroy { private _positionService; containerClass: string; bodyClass: string; headerClass: string; /** * Content to be displayed as popover. */ mdbPopover: string | TemplateRef<any>; /** * Title of a popover. */ mdbPopoverHeader: string; popoverTitle: string; /** * Placement of a popover. Accepts: "top", "bottom", "left", "right" */ placement: 'top' | 'bottom' | 'left' | 'right'; /** * Specifies events that should trigger. Supports a space separated list of * event names. */ triggers: string; /** * A selector specifying the element the popover should be appended to. * Currently only supports "body". */ container: string; /** * Returns whether or not the popover is currently being shown */ get isOpen(): boolean; set isOpen(value: boolean); dynamicPosition: boolean; outsideClick: boolean; popoverDisabled: boolean; /** * Emits an event when the popover is shown */ onShown: EventEmitter<any>; shown: EventEmitter<any>; /** * Emits an event when the popover is hidden */ onHidden: EventEmitter<any>; hidden: EventEmitter<any>; private _popover; constructor(_elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, _config: PopoverConfig, cis: ComponentLoaderFactory, _positionService: PositioningService); get hasContent(): boolean; /** * Opens an element’s popover. This is considered a “manual” triggering of * the popover. */ show(): void | any; /** * Closes an element’s popover. This is considered a “manual” triggering of * the popover. */ hide(): void; /** * Toggles an element’s popover. This is considered a “manual” triggering of * the popover. */ toggle(): void; onclick(event: any): void; onblur(): void; onTouchStart(event: any): void; ngOnInit(): any; dispose(): void; ngOnDestroy(): any; }