Skip to content

Dialog: Extend buttons option docs to cover icons or other button widget options #208

Closed
@jzaefferer

Description

@jzaefferer

Currently the docs don't tell how to use icons with the buttons option. The relevant part of the implementation in dialog:

buttonOptions = {
    icons: props.icons,
    text: props.showText
};
delete props.icons;
delete props.showText;
$( "<button></button>", props )
    .button( buttonOptions )
    .appendTo( that.uiButtonSet );

In addition, the default for the buttons option is wrong, its an empty array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions