UNPKG

@asi-ngtools/lib

Version:

This project is a little components library, simple to use, which will help you to simplify your project.

19 lines (18 loc) 897 B
import { AsiDropDown } from './asi-dropdown.component'; import { AsiDropdownContainer } from './container/asi-dropdown-container.component'; import { ComponentFactoryResolver, ComponentRef, ViewContainerRef } from '@angular/core'; import { Observable } from 'rxjs'; export declare class AsiDropdownService { private resolver; private containers; constructor(resolver: ComponentFactoryResolver); /** * * @param asiDropDown The template content of the dropdown * @param viewContainerRef The ViewContainerRef of the parent component * @param elementRef The parent HTMLElement, where the dropdown should display */ showDropdown(viewContainerRef: ViewContainerRef, elementRef: any, asiDropDown: AsiDropDown): ComponentRef<AsiDropdownContainer>; canClose(index: number, canClose: Function): Observable<any>; private getContainer(viewContainerRef); }