You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.
I would like to add buttons with PromptOptions like:
PromptOptions options = PromptOptions.newOptions(message);
options.addButton("cancel", constants.cancel(), new SimpleCallback() { @OverRide
public void callback() {
callback.callback(false);
}
});
Then I have the followin exception in browser
SEVERE: Uncatched exception in promise (Error) : button key bootbox_btn_0 is not allowed (options are cancel
confirm)
For prompt, the title attribute is mandatory, but not message.
ONLY custom dialog can call addButton() to customize buttons (You can create a jsfiddle to prove it)
So the bug is: you should not call addButton from PromptOptions. But in your case, you have to use custom dialog, and cannot use prompt if you want to customize buttons.
Need to change the content of the "ok" button.
The text was updated successfully, but these errors were encountered: