Skip to content

Commit

Permalink
Dialog: Document button pass-thru options
Browse files Browse the repository at this point in the history
Fixes gh-208
Closes gh-236
  • Loading branch information
scottgonzalez committed Nov 7, 2014
1 parent 0890a1c commit 5674bcd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion entries/dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,24 @@
<example-value>[
{
text: "Ok",
icons: {
primary: "ui-icon-heart"
},
click: function() {
$( this ).dialog( "close" );
}

// Uncommenting the following line would hide the text,
// resulting in the label being used as a tooltip
//showText: false
}
]</example-value>
<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>
</type>
<type name="Array">
<desc>Each element of the array must be an object defining the attributes, properties, and event handlers to set on the button.</desc>
<desc>Each element of the array must be an object defining the attributes, properties, and event handlers to set on the button. In addition, a key of <code>icons</code> can be used to control <a href="/button/#option-icons">button's <code>icons</code> option</a>, and a key of <code>showText</code> can be used to control <a href="/button/#option-text">button's <code>text</code> option</a>.</desc>
</type>
</option>
<option name="closeOnEscape" default="true" example-value="false">
Expand Down

0 comments on commit 5674bcd

Please sign in to comment.