Skip to content

Commit 9daa400

Browse files
committed
jQuery.widget: Add example for _hoverable()
1 parent 99f466b commit 9daa400

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

entries/jQuery.widget.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,12 @@ this._delay( this._foo, 100 );
336336
<argument name="element" type="jQuery">
337337
<desc>The element(s) to apply the hoverable behavior to.</desc>
338338
</argument>
339+
<example>
340+
<desc>Apply the <code>ui-state-hover</code> class to all <code>&lt;div&gt;</code>s within the element on hover.</desc>
341+
<code><![CDATA[
342+
this._hoverable( this.element.find( "div" ) );
343+
]]></code>
344+
</example>
339345
</method>
340346
<method name="_focusable">
341347
<desc>

0 commit comments

Comments
 (0)