Skip to main content

bn.showModal

showModal(options?): Promise<ModalResult>

Displays the modal dialog box.

Parameters

NameType
options?Optional<CmdModalOptions>

Returns

Promise<ModalResult>

Modal result

Optional#

Ƭ Optional<T>: Object

Type parameters

Name
T

Interface: CmdModalOptions#

NameTypeDescription
titlestringPrompt title
contentstringPrompt content
confirmText?stringThe text of the "OK "button, not more than 4 characters
showCancel?booleanIndicates whether to display the "Cancel" button, default is true
cancelText?stringThe text of the "Cancel" button, not more than 4 characters

Interface: ModalResult#

NameTypeDescription
confirm?booleanWhen the value is "true", it indicates that the user tapped the "OK" button.
cancel?booleanWhen the value is "true", it indicates that the user tapped the "Cancel" button.
status?booleandeprecated When the value is "true", it indicates that the user tapped the "OK" button.