1 | import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, AfterContentInit, OnDestroy, QueryList, Renderer2, SimpleChanges } from '@angular/core';
|
2 | import { Placement, PlacementArray } from '../util/positioning';
|
3 | import { NgbDropdownConfig } from './dropdown-config';
|
4 | export declare class NgbNavbar {
|
5 | }
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare class NgbDropdownItem {
|
13 | elementRef: ElementRef<HTMLElement>;
|
14 | static ngAcceptInputType_disabled: boolean | '';
|
15 | private _disabled;
|
16 | set disabled(value: boolean);
|
17 | get disabled(): boolean;
|
18 | constructor(elementRef: ElementRef<HTMLElement>);
|
19 | }
|
20 | /**
|
21 | * A directive that wraps dropdown menu content and dropdown items.
|
22 | */
|
23 | export declare class NgbDropdownMenu {
|
24 | dropdown: any;
|
25 | nativeElement: HTMLElement;
|
26 | placement: Placement | null;
|
27 | isOpen: boolean;
|
28 | menuItems: QueryList<NgbDropdownItem>;
|
29 | constructor(dropdown: any, _elementRef: ElementRef<HTMLElement>);
|
30 | }
|
31 | /**
|
32 | * A directive to mark an element to which dropdown menu will be anchored.
|
33 | *
|
34 | * This is a simple version of the `NgbDropdownToggle` directive.
|
35 | * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support
|
36 | * for events other than click.
|
37 | *
|
38 | * @since 1.1.0
|
39 | */
|
40 | export declare class NgbDropdownAnchor {
|
41 | dropdown: any;
|
42 | nativeElement: HTMLElement;
|
43 | constructor(dropdown: any, _elementRef: ElementRef<HTMLElement>);
|
44 | }
|
45 | /**
|
46 | * A directive to mark an element that will toggle dropdown via the `click` event.
|
47 | *
|
48 | * You can also use `NgbDropdownAnchor` as an alternative.
|
49 | */
|
50 | export declare class NgbDropdownToggle extends NgbDropdownAnchor {
|
51 | constructor(dropdown: any, elementRef: ElementRef<HTMLElement>);
|
52 | }
|
53 | /**
|
54 | * A directive that provides contextual overlays for displaying lists of links and more.
|
55 | */
|
56 | export declare class NgbDropdown implements AfterContentInit, OnDestroy {
|
57 | private _changeDetector;
|
58 | private _document;
|
59 | private _ngZone;
|
60 | private _elementRef;
|
61 | private _renderer;
|
62 | static ngAcceptInputType_autoClose: boolean | string;
|
63 | static ngAcceptInputType_display: string;
|
64 | private _closed$;
|
65 | private _zoneSubscription;
|
66 | private _bodyContainer;
|
67 | private _menu;
|
68 | private _anchor;
|
69 | |
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 | autoClose: boolean | 'outside' | 'inside';
|
78 | |
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 | dropdownClass: string;
|
89 | |
90 |
|
91 |
|
92 | _open: boolean;
|
93 | |
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 | placement: PlacementArray;
|
107 | |
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 | container: null | 'body';
|
114 | |
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 | display: 'dynamic' | 'static';
|
123 | |
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 |
|
130 | openChange: EventEmitter<boolean>;
|
131 | constructor(_changeDetector: ChangeDetectorRef, config: NgbDropdownConfig, _document: any, _ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _renderer: Renderer2, ngbNavbar: NgbNavbar);
|
132 | ngAfterContentInit(): void;
|
133 | ngOnChanges(changes: SimpleChanges): void;
|
134 | /**
|
135 | * Checks if the dropdown menu is open.
|
136 | */
|
137 | isOpen(): boolean;
|
138 | /**
|
139 | * Opens the dropdown menu.
|
140 | */
|
141 | open(): void;
|
142 | private _setCloseHandlers;
|
143 | /**
|
144 | * Closes the dropdown menu.
|
145 | */
|
146 | close(): void;
|
147 | /**
|
148 | * Toggles the dropdown menu.
|
149 | */
|
150 | toggle(): void;
|
151 | ngOnDestroy(): void;
|
152 | onKeyDown(event: KeyboardEvent): void;
|
153 | private _isDropup;
|
154 | private _isEventFromToggle;
|
155 | private _getMenuElements;
|
156 | private _positionMenu;
|
157 | private _getFirstPlacement;
|
158 | private _resetContainer;
|
159 | private _applyContainer;
|
160 | private _applyCustomDropdownClass;
|
161 | private _applyPlacementClasses;
|
162 | }
|