We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62e5ad6 commit 18c7a79Copy full SHA for 18c7a79
entries/tooltip.xml
@@ -156,6 +156,29 @@
156
<p>
157
<a href="#" title="Anchor description">Anchor text</a>
158
<input title="Input help">
159
+</p>]]></html>
160
+ </example>
161
+ <example>
162
+ <height>100</height>
163
+ <desc>Create an ajax tooltip</desc>
164
+ <code><![CDATA[
165
+ $(document).tooltip({
166
+ content: function(setContent){
167
+ var element = $( this );
168
+ $.get("somefile.txt")
169
+ .then( text => {
170
+ setContent(text);
171
+ })
172
+ .catch ( (e) => {
173
+ setContent(`${e.statusText}`);
174
175
+ },
176
+ items: "a, [href]",
177
+ });
178
+]]></code>
179
+ <html><![CDATA[
180
+<p>
181
+ <a href="#" title="Anchor description">Anchor text</a>
182
</p>]]></html>
183
</example>
184
<category slug="widgets"/>
0 commit comments