This repository was archived by the owner on Nov 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ tooltip-template="" | String() | '' | Set your tooltip template (HTML or just Te
8787 | | | ** to know** : don't use it together with ` tooltip-template-url ` attribute, use only one of them
8888tooltip-template-url="" | String() | '' | Set your external tooltip template PATH
8989 | | | ** to know** : don't use it together with ` tooltip-template ` attribute, use only one of them
90- tooltip-controller="" | String() | '' | Set a controller to your external tooltip template
9190tooltip-template-url-cache="" | String(Boolean) | true | This attribute stores and retrieves the template from the cache
91+ tooltip-controller="" | String() | '' | Set a controller to your external tooltip template
9292tooltip-smart="" | String(Boolean) | false | Set the tooltip to automatically search the best position on the screen
9393tooltip-show-trigger="" | String('event1 event2') | 'mouseover' | Show the tooltip on specific event/events
9494tooltip-hide-trigger="" | String('event1 event2') | 'mouseleave' | Hide the tooltip on specific event/events
Original file line number Diff line number Diff line change 604604 }
605605 }
606606 , onTooltipTemplateUrlCacheChange = function onTooltipTemplateUrlCacheChange ( newValue ) {
607- if ( newValue ) {
607+ if ( newValue && $attrs . tooltipTemplateUrl ) {
608608
609- if ( $attrs . tooltipTemplateUrl ) {
610- var template = $templateCache . get ( $attrs . tooltipTemplateUrl ) ;
609+ var template = $templateCache . get ( $attrs . tooltipTemplateUrl ) ;
611610
612- if ( typeof template !== 'undefined' ) {
613- tooltipElement . removeClass ( '_force-hidden' ) ; //see lines below, this forces to hide tooltip when is empty
614- tipTipElement . empty ( ) ;
615- tipTipElement . append ( closeButtonElement ) ;
616- tipTipElement . append ( $compile ( response . data ) ( scope ) ) ;
617- $timeout ( function doLater ( ) {
611+ if ( typeof template !== 'undefined' ) {
612+
613+ tooltipElement . removeClass ( '_force-hidden' ) ; //see lines below, this forces to hide tooltip when is empty
614+ tipTipElement . empty ( ) ;
615+ tipTipElement . append ( closeButtonElement ) ;
616+ tipTipElement . append ( $compile ( response . data ) ( scope ) ) ;
617+ $timeout ( function doLater ( ) {
618618
619- onTooltipShow ( ) ;
620- } ) ;
621- }
622- } ;
619+ onTooltipShow ( ) ;
620+ } ) ;
621+ }
623622 } else {
624623 //hide tooltip because is empty
625624 tipTipElement . empty ( ) ;
You can’t perform that action at this time.
0 commit comments