LiCollapseToggleDirective class
Trigger directive for selector-based collapse toggles.
This covers the common Bootstrap pattern:
<a href="#filters" data-bs-toggle="collapse">.
Use [liCollapseToggle]="'#filters'" or omit the value when the host
already has an href="#filters" attribute.
- Annotations
-
- @Directive.new(selector: '[liCollapseToggle]', exportAs: 'liCollapseToggle')
Constructors
Properties
- animation ↔ bool
-
getter/setter pair
-
collapseChange
→ Stream<
bool> -
no setter
- collapsed ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontal ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target ↔ String?
-
getter/setter pair
Methods
-
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
-
toggle(
[bool? open]) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited