addButton(text:right:action:)

    Adds a button with label text and a custom action to the dialog and returns the created button. action will be passed to the [signal custom_action] signal when pressed.

    AcceptDialog.swift:246
    final func addButton(text: String, right: Bool = false, action: String = "") -> Button?

    If true, right will place the button to the right of any sibling buttons.

    You can use removeButton(_:) method to remove a button created with this method from the dialog.

    Other members in extension

    Types

    Type members

    Instance members