Skip to content

DialogContext.selectOption method

DialogContext › selectOption

Shows a selectOption, or lets the driver answer it.

Signature:

selectOption(params: DialogContextSelectOptionParams<T>): Promise<null | T>

Parameters:

ParameterTypeDescription
paramsDialogContextSelectOptionParams<T>The parameters of the selection.

Returns: Promise<null | T> — A Promise that resolves with the chosen option's value, or null when dismissed.