Static attribute with array assignments #553
vladnicula
started this conversation in
Ideas
Replies: 1 comment
-
And @vladnicula to add something to this, we need to consider the following use case as well How about a array of something like this and the rendered component should be something like this and when we are ding this we need to consider one more change, instead of generating only |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We should have a conversation about the array being passed down as an attribute on elements:
The content here is indeed a static array of strings, but arrays in general cannot be passed down as props on attributes directly.
What if we want to pass down 2-3 static items and 2-3 dynamic ones in this array? We cannot describe this intention now.
Where would this be useful?
We have a dropdown with "Use default" as the default options, and then 10 items being fed from props. All options need to be pickable in the selection widget. Right now this is not possible, as a static and a set of dynamic items cannot be assigned to the same attribute as an array of values.
Beta Was this translation helpful? Give feedback.
All reactions