Feat: Add a Reset signal input to Multi Choice With Pills (#48)

This commit is contained in:
kotte
2023-12-05 14:04:09 +01:00
committed by GitHub
parent 86e95dc1c8
commit 379ed363f4
3 changed files with 3 additions and 1 deletions

View File

@@ -26,3 +26,5 @@ The example below shows how to hook the **Multi Choice With Pills** up to data i
As input it takes three arrays of strings, one containing all possible options, the **Options** input, this is the "value" of the options, it might differ from the labels, i.e. what is shown on screen. This you can specify with the **Labels** array input, it must have the same number of strings in the array, each one corresponding to a value in the **Options** array. As input it takes three arrays of strings, one containing all possible options, the **Options** input, this is the "value" of the options, it might differ from the labels, i.e. what is shown on screen. This you can specify with the **Labels** array input, it must have the same number of strings in the array, each one corresponding to a value in the **Options** array.
The final array is the **Selection** array, it contains all options that are selection. There is also an output from the component called **Selection** which is updated when the user interacts with the component, the **Selection Changed** event is triggered. The final array is the **Selection** array, it contains all options that are selection. There is also an output from the component called **Selection** which is updated when the user interacts with the component, the **Selection Changed** event is triggered.
This component also features a **Reset** signal input, that can be used to clear the selection.

View File

@@ -19,7 +19,7 @@
"label": "Multi Choice with Pills", "label": "Multi Choice with Pills",
"desc": "A multi select drop down, showing the selected items as pills.", "desc": "A multi select drop down, showing the selected items as pills.",
"icon": "library/prefabs/multi-choice-with-pills/multi-choice-with-pills.png", "icon": "library/prefabs/multi-choice-with-pills/multi-choice-with-pills.png",
"project": "library/prefabs/multi-choice-with-pills/multi-choice-with-pills-0-8.zip", "project": "library/prefabs/multi-choice-with-pills/multi-choice-with-pills-0-9.zip",
"docs": "/library/prefabs/multi-choice-with-pills/", "docs": "/library/prefabs/multi-choice-with-pills/",
"tags": ["UI"] "tags": ["UI"]
}, },