diff --git a/entries/dialog.xml b/entries/dialog.xml index 7e897aaf..b760e637 100644 --- a/entries/dialog.xml +++ b/entries/dialog.xml @@ -105,9 +105,16 @@ [ { 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 } ] 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. @@ -115,7 +122,7 @@ The keys are the button labels and the values are the callbacks for when the associated button is clicked. - Each element of the array must be an object defining the attributes, properties, and event handlers to set on the button. + 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 icons can be used to control button's icons option, and a key of showText can be used to control button's text option.