Hi,
I am having some problems with the binding context of items. My problem is as follows:
if I have my view bound to the following context of the model:
{ pinned: true, itemsPath: [ { title: "item 1 title" }, { ... } ] }
then how do I do the following in my XML view:
<Table items='itemsPath'> <Columns> ... </Columns> <items> <Text text="{path: 'title'}", //This correctly binds to the 'itemsPath/title' property <Text text="{path: 'pinned'}" //This should be the pinned property from the view's binding context 'pinned' </items> </Table>
The problem is if I bind the table's items to "itemsPath" then I can't go back to the view's context and access the pinned property.
Things that I've tried:
{path: '/pinned'}" This doesn't work because it goes to my model's root and not my view's context
Any help would be much appreciated, thanks.
Regards
Albert Volschenk