@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) • 812 B
TypeScript
import { AsiDropDown } from './asi-dropdown.component';
import { AsiDropdownContainer } from './container/asi-dropdown-container.component';
import { ComponentFactoryResolver, ComponentRef, ApplicationRef } from '@angular/core';
import { Observable } from 'rxjs';
export declare class AsiDropdownService {
private resolver;
private appRef;
private containers;
constructor(resolver: ComponentFactoryResolver, appRef: ApplicationRef);
/**
*
* @param templateRef The template content of the dropdown
* @param htmlElement The parent HTMLElement, where the dropdown should display
*/
showDropdown(elementRef: any, asiDropDown: AsiDropDown): ComponentRef<AsiDropdownContainer>;
canClose(index: number, canClose: Function): Observable<any>;
private getContainer();
}