Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jQuery.widget: Example for _getCreateEventData method.

  • Loading branch information...
commit 33fa3448011f180a78baa2f464bf2423206167ae 1 parent 995a6ce
@tjvantoll tjvantoll authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 entries/jQuery.widget.xml
View
8 entries/jQuery.widget.xml
@@ -212,6 +212,14 @@ _destroy: function() {
<desc>
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.
</desc>
+ <example>
+ <desc>Pass the widget's options <code>create</code> event handlers as an argument.</desc>
+ <code><![CDATA[
+_getCreateEventData: function() {
+ return this.options;
+}
+]]></code>
+ </example>
</method>
<method name="_getCreateOptions" return="Object">
<desc>
Please sign in to comment.
Something went wrong with that request. Please try again.