Skip to content

Dialog > buttons option 'text' should be 'label' instead ? #2079

Open
@pjfsilva

Description

@pjfsilva

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions