diff --git a/Readme.md b/Readme.md index 42d033b..242ae31 100644 --- a/Readme.md +++ b/Readme.md @@ -100,7 +100,7 @@ tooltip-colse-button="" | String(HTML) | false | Set the tooltip HTML close butt tooltip-class="" | String() | false | Set the tooltip custom CSS class/classes tooltip-scroll="" | String(Boolean) | false | Set the tooltip to follow the element on scroll/move tooltip-parent="" | String('#id') | '
' | Set the tooltip DOM parent by ID - +tooltip-hide="" | String(Boolean) | false | Hide the tooltip ##Options Angular tooltips allows you to use some options via `attribute` data diff --git a/src/js/angular-tooltips.js b/src/js/angular-tooltips.js index 2d28c7e..0ce2252 100644 --- a/src/js/angular-tooltips.js +++ b/src/js/angular-tooltips.js @@ -18,6 +18,8 @@ , 'delay': 0 , 'lazy': true , 'closeButton': null + , 'hide': false + }; this.options = function optionsAccessor() { @@ -79,7 +81,8 @@ , lazyMode = typeof attr.tooltipLazy !== 'undefined' && attr.tooltipLazy !== null ? $scope.$eval(attr.tooltipLazy) : tooltipsConfig.lazy , closeButtonContent = attr.tooltipCloseButton || tooltipsConfig.closeButton , hasCloseButton = typeof closeButtonContent !== 'undefined' && closeButtonContent !== null - , htmlTemplate = '