- Source:
The mdTooltipDirective
decorates the vanilla mdTooltip.
Modifies display logic if touch mode is on.
Requires
- module:$delegate
- module:$rootElement
- module:$timeout
Methods
(inner) decorateCompile(originalCompile) → {function}
- Source:
Decorates the original tooltip compile functions.
Parameters:
Name | Type | Description |
---|---|---|
originalCompile |
function | original compile function |
Returns:
enhances link function returned by the decorated compile function which modifies display logic if touch mode is on
- Type
- function
(private, inner) isTouch() → {Boolean}
- Source:
Returns whether touch mode is on, and if it is, ensures the tooltip is hidden.
Returns:
true iff touch mode is on, false otherwise
- Type
- Boolean