Dialog choice
- A decision block that lets the user select from a list of choices.
- The fiber will pause until the user has made a choice, cancelled the dialog or the timeout expired.
If an array is set as choices, then its elements are used as labels. If a dictionary is set, then the values are used as labels. A number or text is used as the label for a single choice. If null, the no choices will be shown.
The sift function can be used to filter the choices.
Note!
選択された index/key は、「一つだけ選択」にした場合でも array として返ってくる。そのため、値を用いるには、selected[0] や choices[selected[0]] とする。
Input arguments
- Title : ダイアログに表示されるタイトル
- Choices : possible choices, show as a list.
- Pre-select : デフォルトで選択されている index or key
- Multi-select — whether to allow selection of multiple choices, default is false.
- No selection — whether to allow no selection, only applicable for multiple choice.
- Sort — whether the displayed choices should be sorted in alphabetical order.
- Timeout — time until the notification/dialog is automatically canceled, default is no timeout.
- Notification channel — UUID of notification channel used for shown notification, default is the flow default or Flow.
- Show window — whether to show the dialog window directly without having to tap the notification. Only works when no other window is showing.
Output variables
- Selected indices/keys — variable to assign an array with the selected indices/keys.
最終更新:2019年01月16日 21:35