Skip to content

Commit 0890a1c

Browse files
committed
Dialog: Split buttons example on to multiple lines
1 parent e9dc95d commit 0890a1c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

entries/dialog.xml

+9-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,15 @@
101101
<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>
102102
<type name="Boolean" />
103103
</option>
104-
<option name="buttons" default="[]" example-value='[ { text: "Ok", click: function() { $( this ).dialog( "close" ); } } ]'>
104+
<option name="buttons" default="[]">
105+
<example-value>[
106+
{
107+
text: "Ok",
108+
click: function() {
109+
$( this ).dialog( "close" );
110+
}
111+
}
112+
]</example-value>
105113
<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>
106114
<type name="Object">
107115
<desc>The keys are the button labels and the values are the callbacks for when the associated button is clicked.</desc>

0 commit comments

Comments
 (0)