I am working on a personal widget where you enter in props settings a comma-separated value.
Now I want to build an oh-repeater
on props parameters (e.g. prop_1, prop_2, prop_3, …)
...
config:
fragment: true
sourceType: range
for: buttonLabel
rangeStart: 1
rangeStop: 6
...
component: oh-button
config:
text: =???
text
needs to be a concatenation of props.prop_
+ loop.buttonlabel.toString()
What is here the correct syntax assuming the props are named prop_1, prop_2, prop_3, …?
As an alternative I tried to list the props directly in the in
parameter:
...
config:
fragment: true
sourceType: array
for: buttonLabel
in:
- props.prop_1
- props.prop_2.toString()
- =props.prop_3
- ...
component: oh-button
config:
text: =loop.buttonLabel.split("=")[0]
obviously none of the above props.prop1
is correct.
Anybody has got a clue about the correct syntax?