Home > SYS_Dialog > showSelectDialog
SYS_Dialog.showSelectDialog() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Show a multi-select dialog
Signature
function showSelectDialog(
options: Array<string> | Array<{ value: string; displayContent: string }>,
beforeContent?: string,
afterContent?: string,
title?: string,
defaultOption?: Array<string>,
multiple?: true,
callbackFn?: (value: Array<string>) => void | Promise<void>,
): void;2
3
4
5
6
7
8
9
Parameters
Parameter | Type | Description |
|---|---|---|
options | Array<string> | Array<{ value: string; displayContent: string }> | Option list, which can be an array of strings or an array of objects. When |
beforeContent | string | (Optional) Text above the multi-select box |
afterContent | string | (Optional) Text below the multi-select box |
title | string | (Optional) Multi-select box title |
defaultOption | Array<string> | (Optional) Default option array, using the option values as matching parameters |
multiple | true | (Optional) Whether multiple selection is supported |
callbackFn | (value: Array<string>) => void | Promise<void> | (Optional) Callback function |
Returns
void
Array of the set of values selected by the user, corresponding to the value fields in the passed-in options