Skip to content

Commit

Permalink
jQuery.widget: Document the defaultElement property
Browse files Browse the repository at this point in the history
Closes gh-192
  • Loading branch information
tjvantoll committed Jan 31, 2014
1 parent 0f8f481 commit de57a09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entries/jQuery.widget.xml
Expand Up @@ -131,6 +131,9 @@
<p>All widgets have the following set of properties:</p> <p>All widgets have the following set of properties:</p>


<ul> <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> <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. <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>
Expand Down

0 comments on commit de57a09

Please sign in to comment.