Reputation: 165
I want to call a template function for the items in a table. But I get the following error:
Assertion failed: list bindings support only a single template object
<Table
id="treeTable"
items="{path:'nodeModel>/nodeRoot', parameters: {arrayNames:['children']}, template: '.resourceTemplate'}">
<columns>
<Column><Text text="Column1"/>
</Column>
<Column><Text text="Column2"/>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<Text text="Row1Col1"/>
<Text text="Row1Col2"/>
</cells>
</ColumnListItem>
</items>
</Table>
Upvotes: 0
Views: 721
Reputation: 263
Define template using XML or JS only:
<Table
id="treeTable"
items="{path:'nodeModel>/nodeRoot', parameters: {arrayNames:['children']}, template: '.resourceTemplate'}">
<columns>
<Column><Text text="Column1"/>
</Column>
<Column><Text text="Column2"/>
</Column>
</columns>
</Table>
Upvotes: 1