Permalink
Browse files

jQuery.widget: Document the defaultElement property

Closes gh-192
  • Loading branch information...
1 parent 0f8f481 commit de57a09b3e2362cd2d5fc6c30a1034988de4e82a @tjvantoll tjvantoll committed Jan 31, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 entries/jQuery.widget.xml
@@ -132,6 +132,9 @@
<ul>
<li>
+ <strong>defaultElement</strong>: An element to use when a widget instance is constructed without providing an element. For example, since the progressbar's <code>defaultElement</code> is <code>"&lt;div&gt;</code>", <code>$.ui.progressbar({ value: 50 })</code> instantiates a progressbar widget instance on a newly created <code>&lt;div&gt;</code>.
+ </li>
+ <li>
<strong>document</strong>: The <code>document</code> that the widget's element is within. Useful if you need to interact with widgets within iframes.
</li>
<li>

0 comments on commit de57a09

Please sign in to comment.