Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 6a4527b

Browse files
Josh David Millerpkozlowski-opensource
Josh David Miller
authored andcommitted
docs(tooltip): add $tooltipProvider docs
Until now, the $tooltipProvider has been an undocumented feature, but as there are now several options requested by the community at large, it is finally included in the documentation.
1 parent dfa5315 commit 6a4527b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/popover/docs/readme.md

+3
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ will display:
2020

2121
The popover directives require the `$position` service.
2222

23+
The popover directive also supports various default configurations through the
24+
$tooltipProvider. See the [tooltip](#tooltip) section for more information.
25+

src/tooltip/docs/readme.md

+19
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,22 @@ provided hide triggers:
3333
For any non-supported value, the trigger will be used to both show and hide the
3434
tooltip.
3535

36+
**$tooltipProvider**
37+
38+
Through the `$tooltipProvider`, you can change the way tooltips and popovers
39+
behave by default; the attributes above always take precedence. The following
40+
methods are available:
41+
42+
- `setTriggers( obj )`: Extends the default trigger mappings mentioned above
43+
with mappings of your own. E.g. `{ 'openTrigger': 'closeTrigger' }`.
44+
- `options( obj )`: Provide a set of defaults for certain tooltip and popover
45+
attributes. Currently supports 'placement', 'animation', 'popupDelay', and
46+
`appendToBody`. Here are the defaults:
47+
48+
<pre>
49+
placement: 'top',
50+
animation: true,
51+
popupDelay: 0,
52+
appendToBody: false
53+
</pre>
54+

0 commit comments

Comments
 (0)