ShowHideDirective class

Shows or hides the given HTML element based on an expression.

The element is shown or hidden by removing or adding the 'acx-showhide-hide' css class at first, and 'acx-showhide-hidden' at the end of transition (or after 16ms delay if no transition happened).

Annotations
  • @Directive(selector: '[showhide]')

Constructors

ShowHideDirective(Element _element, DomService _domService)

Properties

hashCode int
The hash code for this object.
no setterinherited
onHide Stream<Element>
Fires when the hide styles are first applied to the element.
no setter
onHideEnd Stream<Element>
Fires when the transitions have finished and the element is fully hidden.
no setter
onShow Stream<Element>
Fires when the show styles are first applied to the element.
no setter
onShowEnd Stream<Element>
Fires when the transitions have finished and the element is fully visible.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visible bool
no getter

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
toString() String
A string representation of this object.
inherited

Operators

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