Skip to content

Commit de57a09

Browse files
committed
jQuery.widget: Document the defaultElement property
Closes gh-192
1 parent 0f8f481 commit de57a09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entries/jQuery.widget.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@
131131
<p>All widgets have the following set of properties:</p>
132132

133133
<ul>
134+
<li>
135+
<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>.
136+
</li>
134137
<li>
135138
<strong>document</strong>: The <code>document</code> that the widget's element is within. Useful if you need to interact with widgets within iframes.
136139
</li>

0 commit comments

Comments
 (0)