@porscheinformatik/clr-addons
Version:
Addon components for Clarity Angular
27 lines (26 loc) • 1.42 kB
TypeScript
import { AfterViewChecked, ElementRef, OnDestroy } from '@angular/core';
import * as i0 from "@angular/core";
export declare class ClrDropdownOverflowDirective implements AfterViewChecked, OnDestroy {
private elRef;
clrDropdownMenuMaxHeight: string | number;
clrDropdownMenuItemMinHeight: string | number;
set clrMarginBottom(value: string | number);
private nestedDropdownChildren;
readonly defaultItemMinHeightRem = 1.5;
private alreadyChecked;
private marginBottomPx;
private nestedDropdownSubscription;
constructor(elRef: ElementRef);
ngAfterViewChecked(): void;
ngOnDestroy(): void;
private applyDropdownOverflowStyles;
private removeDropdownOverflowStyles;
private getAllChildDropdownMenuItems;
private getMenuMaxHeight;
private getItemMinHeight;
private convertToPixels;
private convertRemToPixels;
private convertVhToPixels;
static ɵfac: i0.ɵɵFactoryDeclaration<ClrDropdownOverflowDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrDropdownOverflowDirective, "clr-dropdown-menu", never, { "clrDropdownMenuMaxHeight": { "alias": "clrDropdownMenuMaxHeight"; "required": false; }; "clrDropdownMenuItemMinHeight": { "alias": "clrDropdownMenuItemMinHeight"; "required": false; }; "clrMarginBottom": { "alias": "clrMarginBottom"; "required": false; }; }, {}, ["nestedDropdownChildren"], never, false, never>;
}