Hi,
get a Component of a other view
I have a Ext.tree.Panel and I like to show a "context" Menu onTreePanelItemContextMenu as well as onTreepanelContainerContextMenu. After choose a Menu entry I have to get the selectionModel to check if a node/leaf is selected.
For now the ContextMenu has a own View so it has a own Controller etc.
Screenshot 2015-02-24 07.48.11.png
now if the menu item is clicked ...
Screenshot 2015-02-24 07.51.16.png
how can I get the selection Model of the MainView.TreePanel ... Is there a way? Or did I have to define the events in my Main Controller? which way is the "right" way or let's say "best practice"
get a Component of a other view
Aucun commentaire:
Enregistrer un commentaire