This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 31
31
< label > Or use custom triggers, like focus: </ label >
32
32
< input type ="text " value ="Click me! " tooltip ="See? Now click away... " tooltip-trigger ="focus " tooltip-placement ="right " class ="form-control " />
33
33
</ div >
34
+
35
+ < div class ="form-group " ng-class ="{'has-error' : !inputModel} ">
36
+ < label > Disable tooltips conditionally:</ label >
37
+ < input type ="text " ng-model ="inputModel " class ="form-control "
38
+ placeholder ="Hover over this for a tooltip until this is filled "
39
+ tooltip ="Enter something in this input field to disable this tooltip "
40
+ tooltip-placement ="top "
41
+ tooltip-trigger ="mouseenter "
42
+ tooltip-enable ="!inputModel " />
43
+ </ div >
34
44
</ form >
35
45
</ div >
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ will display:
16
16
- ` tooltip-popup-delay ` : For how long should the user have to have the mouse
17
17
over the element before the tooltip shows (in milliseconds)? Defaults to 0.
18
18
- ` tooltip-trigger ` : What should trigger a show of the tooltip?
19
+ Note: this attribute is no longer observable. See ` tooltip-enable ` .
20
+ - ` tooltip-enable ` : Is it enabled? It will enable or disable the configured
21
+ ` tooltip-trigger ` .
19
22
- ` tooltip-append-to-body ` : Should the tooltip be appended to ` $body ` instead of
20
23
the parent element?
21
24
You can’t perform that action at this time.
0 commit comments