Arrays
Certain properties can be declared as an array, allowing the input to be multi-select. Doing so returns all selected values within an array.
Property Type | Supported As Array |
---|---|
boolean | No |
string | Yes |
number | Yes |
Color | No |
Complex Object | Yes |
Select | Yes |
Typed List | No |
Simple types can be put into multi-value arrays by simply making them arrays.
String literal types can also be used as multi-value to provide the end user with a set of options of which multiple can be selected.
Configurations can also be arrays of complex objects. You can use these arrays to permit the user to create a list of configured objects. When used in combination with the @tabular
decorator, it is possible to create table structured inputs.