samedi 13 septembre 2014

Is there better syntax for searching for a sibling?

I have a panel that has 4 grids on it

In one grid, in the viewController I want to update the title of a child (sibling) grid.

I am writing:


this.getView().up().down('#tripDetails').setTitle('new title here');


Is there a better (shorter!) way?


Thanks


Bruce


(and I do NOT want this logic in the panel, I want to have this contained in the grid viewController.)






Is there better syntax for searching for a sibling?

Aucun commentaire:

Enregistrer un commentaire