To make it consistent between the two places, shouldn't the option for the dialog be also called label?
Looking at the code for dialog.js it seems the dialog never sets buttonOptions.label thus making it impossible to use the right option on the dialog.
I understand this breaks compatibility but it's pretty easy to keep retrocompatibility and offer the label option on dialog. It also makes it easier to understand the dialog docs if we support all the button options over there. (most are supported but not all)
The text was updated successfully, but these errors were encountered:
I agree that it should be possible to use the label and showLabel option when using the option buttons of the dialog widget. Actually only showLabel works but showText (as the docs say https://api.jqueryui.com/dialog/#option-buttons) does not. So the terminology is mixed up anyway. The source code looks like it was planned to remove the text option sometimes (see the Deprecated options" comments).
When we are setting the buttons for a dialog, the option to set the button text is 'text': https://api.jqueryui.com/dialog/#option-buttons
But on the Button Widget the option is called 'label'. https://api.jqueryui.com/button/#option-label
To make it consistent between the two places, shouldn't the option for the dialog be also called
label?Looking at the code for dialog.js it seems the dialog never sets buttonOptions.label thus making it impossible to use the right option on the dialog.
I understand this breaks compatibility but it's pretty easy to keep retrocompatibility and offer the label option on dialog. It also makes it easier to understand the dialog docs if we support all the button options over there. (most are supported but not all)
The text was updated successfully, but these errors were encountered: