Skip to Content
Former Member
Jun 17, 2016 at 08:10 AM

Binding Context Problems



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'>
          <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'

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.


Albert Volschenk