Skip to content

Commit 33fa344

Browse files
committed
jQuery.widget: Example for _getCreateEventData method.
1 parent 995a6ce commit 33fa344

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

entries/jQuery.widget.xml

+8
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ _destroy: function() {
212212
<desc>
213213
All widgets trigger the <a href="#event-create"><code>create</code></a> event. By default, no data is provided in the event, but this method can return an object which will be passed as the <code>create</code> event's data.
214214
</desc>
215+
<example>
216+
<desc>Pass the widget's options <code>create</code> event handlers as an argument.</desc>
217+
<code><![CDATA[
218+
_getCreateEventData: function() {
219+
return this.options;
220+
}
221+
]]></code>
222+
</example>
215223
</method>
216224
<method name="_getCreateOptions" return="Object">
217225
<desc>

0 commit comments

Comments
 (0)