Browse files

Dialog: Change example for buttons option to use array

  • Loading branch information...
1 parent 68f37be commit 561c5626cbc9c7ac95e27a5d59c8f4a156ebd466 @jzaefferer jzaefferer committed Nov 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 entries/dialog.xml
@@ -16,7 +16,7 @@
<desc>If set to <code>true</code>, the dialog will automatically open upon initialization. If <code>false</code>, the dialog will stay hidden until the <a href="#method-open"><code>open()</code></a> method is called.</desc>
<type name="Boolean" />
- <option name="buttons" default="{}" example-value='{ Ok: function() { $( this ).dialog( "close" ); } }'>
+ <option name="buttons" default="{}" example-value='[ { text: "Ok", click: function() { $( this ).dialog( "close" ); } ]'>
<desc>Specifies which buttons should be displayed on the dialog. The context of the callback is the dialog element; if you need access to the button, it is available as the target of the event object.</desc>
<type name="Object">
<desc>The keys are the button labels and the values are the callbacks for when the associated button is clicked.</desc>

0 comments on commit 561c562

Please sign in to comment.