DialogContext.selectOption method
DialogContext › selectOption
Shows a selectOption, or lets the driver answer it.Signature:
selectOption(params: DialogContextSelectOptionParams<T>): Promise<null | T>Parameters:
| Parameter | Type | Description |
|---|---|---|
| params | DialogContextSelectOptionParams<T> | The parameters of the selection. |
Returns: Promise<null | T> — A Promise that resolves with the chosen option's value, or null when dismissed.