@asi-ngtools/lib
Version:
This project is a little components library, simple to use, which will help you to simplify your project.
25 lines (24 loc) • 1.16 kB
TypeScript
import { EventEmitter, ElementRef, TemplateRef, OnChanges, SimpleChanges, ViewContainerRef } from '@angular/core';
import { AsiDropdownService } from './asi-dropdown.service';
export declare class AsiDropDown implements OnChanges {
private asiDropdownService;
private elementRef;
private viewContainerRef;
/** Change to true to open the drowndrop */
open: boolean;
/** fix the width to the relative component width */
calculWidth: boolean;
/** link the dropdown to the component position */
relativeTo: ElementRef;
/** Allow you to add a class to the down drop container */
dropDownClass: string;
/** Event emitted when dropdown is closed (you should put you open var to false to be able to reopen) */
onClose: EventEmitter<{}>;
/** Function to check if the dropdown can close on click, get the clicked element as parameter */
canClose: Function;
private dropdown;
contentTemplate: TemplateRef<any>;
constructor(asiDropdownService: AsiDropdownService, elementRef: ElementRef, viewContainerRef: ViewContainerRef);
ngOnChanges(changes: SimpleChanges): void;
destroyDropdown(): void;
}