You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
@@ -175,7 +175,8 @@ I will init my position on mouseover only the first time event is fired
175
175
```
176
176
177
177
####Tooltip triggers
178
-
You can set your tooltip to show/hide on specific event/events, you can use the `tooltip-show-trigger=""` and the `tooltip-hide-trigger=""` attribute for this scope
178
+
You can set your tooltip to show/hide on specific event/events, you can use the `tooltip-show-trigger=""` and the `tooltip-hide-trigger=""` attribute for this scope.
179
+
Defaults: `mouseover`, `mouseleave`
179
180
```html
180
181
<ahref="#"tooltipstooltip-title="tip"tooltip-show-trigger="click"tooltip-side="top">Show tooltip only on click</a>
181
182
<ahref="#"tooltipstooltip-title="tip"tooltip-hide-trigger="click"tooltip-side="bottom">Hide tooltip only on click</a>
@@ -184,15 +185,15 @@ You can set your tooltip to show/hide on specific event/events, you can use the
184
185
185
186
_**Close button**_
186
187
187
-
If you want to hide on click, you can configure a close button using text or HTML. This allows your users to click the button inside the tooltip instead of clicking on the original trigger.
188
+
If you want to hide on click, you can configure a close button using text or HTML. This allows your users to click the button inside the tooltip instead of clicking on the original trigger. Default: `null` (no close button)
188
189
```html
189
190
<ahref="#"tooltipstooltip-title="tip"tooltip-show-trigger="mouseover click"tooltip-hide-trigger="click"tooltip-close-button="x"tooltip-side="left">Show tooltip on click and mouseover and hide tooltip only on click, with option to click on the X</a>
190
191
<ahref="#"tooltipstooltip-title="tip"tooltip-show-trigger="mouseover click"tooltip-hide-trigger="click"tooltip-close-button='<button type="button">Close Me!</button>'tooltip-side="left">Show tooltip on click and mouseover and hide tooltip only on click, with option to click on HTML button</a>
191
192
```
192
193
193
194
####Tooltip hide trigger target
194
195
You can use ```tooltip-hide-target=""``` to specify if the target of the ```tooltip-hide-trigger=""``` is the element or the tooltip itself.
195
-
Values are "element" (default) or "tooltip".
196
+
Values are "element" or "tooltip". Default: `element`
I will show a tooltip with class="tooltip-custom tooltip-for-me"
@@ -210,13 +211,34 @@ I will show a tooltip with class="tooltip-custom tooltip-for-me"
210
211
211
212
212
213
####Tooltip scroll
213
-
In case your tooltip target element moves (either by scrolling or by use of .js) you can enable tooltip positioning check using `tooltip-scroll="true"` attribute. When this is enabled, tooltip element position is checked every 20ms and tooltip position is updated when necessary. This comes extra handy when using close triggers and you need to keep tooltip besides the target element.
214
+
In case your tooltip target element moves (either by scrolling or by use of .js) you can enable tooltip positioning check using `tooltip-scroll="true"` attribute. When this is enabled, tooltip element position is checked every 20ms and tooltip position is updated when necessary. This comes extra handy when using close triggers and you need to keep tooltip besides the target element. Default: `false`
214
215
```html
215
216
<ahref="#"tooltipstooltip-title="I move along with my element"tooltip-scroll="true">
216
217
I will follow my element movements
217
218
</a>
218
219
```
219
220
221
+
## Global Options
222
+
Application wide defaults for most of the options can be set using the `tooltipConfigProvider`:
223
+
224
+
```js
225
+
angular
226
+
.module('app')
227
+
.config(function(tooltipsConfigProvider) {
228
+
tooltipsConfigProvider.options({
229
+
lazy:false,
230
+
size: large
231
+
})
232
+
});
233
+
```
234
+
Options that are not specified are kept unchanged.
235
+
Option names are the same as attribute names without the "tooltip-" prefix: `scroll`, `showTrigger`, `hideTrigger`,
0 commit comments