LiDropdownDirective class

Dropdown declarativo com API próxima ao ng-bootstrap.

O visual do caret do gatilho depende do CSS do tema. No example usando Limitless 4 + ícones Phosphor, o tema base precisa renderizar .dropdown-toggle::after com um glyph existente da fonte Phosphor. Caso o tema carregado use um codepoint diferente, faça um override global para o caret, por exemplo usando content: "\e9fe" (ph-caret-down).

Annotations
  • @Directive.new(selector: '[liDropdown]', exportAs: 'liDropdown')

Constructors

LiDropdownDirective(Element _hostElement, ChangeDetectorRef _changeDetectorRef, [@Optional.new() LiDropdownConfig? config])

Properties

adaptToViewport ↔ bool
getter/setter pair
autoClose ↔ Object?
getter/setter pair
container ↔ String?
getter/setter pair
display ↔ String
getter/setter pair
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hostDropdownClass → bool
no setter
hostDropupClass → bool
no setter
hostShowClass → bool
no setter
getter/setter pair
getter/setter pair
openChange → Stream<bool>
no setter
opened ← bool
no getter
placement ↔ Object?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
isOpen() → bool
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
ngOnInit() → void
Executed after the first change detection run for a directive.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onKeyDown(KeyboardEvent event) → void
open() → void
registerAnchor(LiDropdownAnchorDirective anchor) → void
registerItem(LiDropdownItemDirective item) → void
registerMenu(LiDropdownMenuDirective menu) → void
toggle() → void
toString() → String
A string representation of this object.
inherited
unregisterAnchor(LiDropdownAnchorDirective anchor) → void
unregisterItem(LiDropdownItemDirective item) → void
unregisterMenu(LiDropdownMenuDirective menu) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited