@duoduo-oba/ng-devui
Version:
DevUI components based on Angular
28 lines (27 loc) • 1.06 kB
TypeScript
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
import { Subscription } from 'rxjs';
import { AnimationBuilder, AnimationPlayer } from '@angular/animations';
import { WindowRef } from '@duoduo-oba/ng-devui/window-ref';
import { DropDownDirective } from './dropdown.directive';
export declare class DropDownMenuDirective implements OnInit {
private dropdown;
private el;
private render;
private windowRef;
private builder;
player: AnimationPlayer;
diplay: string;
tabIndex: number;
addClass: boolean;
keydownEscapeEvent$: import("rxjs").Observable<Event>;
keydownEscapeSub: Subscription;
popDirectionCache: 'top' | 'bottom';
private currentValue;
constructor(dropdown: DropDownDirective, el: ElementRef, render: Renderer2, windowRef: WindowRef, builder: AnimationBuilder);
ngOnInit(): void;
calcPopDirection(value: any): "top" | "bottom";
mouseLeave(event: MouseEvent): boolean;
private fadeIn;
hide: (event: Event) => void;
private fadeOut;
}