Sorry, I am guessing this has a very simple answer, but I am just not able to empiric nor google my way out of the problem…
How can I access the current array element, instead of its “properties”, so that I do not need to explicit pass all of the array objects properties to a component class?
I.e (mockup, may contain compile errors, just to show):
<JavaScript>
var ArrayOfActions = [
{label: "Add", description: "Add some action"},
{label: "Delete", description: "Delete some action"}
];
</JavaScript>
<Panel ux:Class="MyButton">
<object ux:Property="MyAction"/>
<JavaScript>
var localMyAction= this.MyAction.inner();
</JavaScript>
<Button Value="{localMyAction.label}" />
</Panel>
<Each Items="{ArrayOfActions}">
<MyButton MyAction="{OBJECT???}" />
</Each>
I assume the local javascript in class MyButton is also necessary, according to how I interpret Class-documentation.
Any support would be very much appretiated!