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
confirmTextstringThe text of the "OK "button, not more than 4 characters
showCancelbooleanIndicates whether to display the "Cancel" button, default is true
cancelTextstringThe text of the "Cancel" button, not more than 4 characters

Interface: ModalResult#

NameTypeDescription
confirmbooleanWhen the value is "true", it indicates that the user tapped the "OK" button.
cancelbooleanWhen the value is "true", it indicates that the user tapped the "Cancel" button.
statusbooleandeprecated When the value is "true", it indicates that the user tapped the "OK" button.