AcxPanClassDirective class
A directive to dynamically set a class based on the pan state.
Example use:
<some-element acxPanClass="'pan-style'" ...
The directive will add -top, -right, -bottom and -left suffix to the style
name, adding and removing it in a dom write callback.
E.g. in the example above, if the panning is top-left, both the
pan-style-top
and the pan-style-left
styles names will be set.
- Annotations
-
- @Directive.new(selector: '[acxPanClass]')
Constructors
- AcxPanClassDirective(DomService domService, ScrollHost scrollHost, HtmlElement element)
Properties
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
-
startPanListener(
) → void -
inherited
-
stopPanListener(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited