Custom view with toolbar and button scope question

I have a custom view, with a toolbar with a button and a multiview. In my snippet I have my problem with the following question:

How can I get here to the “contentpanel” view itself?
Variable parent goes to the toolbar, instead of the “contentpanel” itself
I want to fire the event on the contentpanel, rather than on the toolbar because I listen to this event in another view.

http://webix.com/snippet/2bfcbc41

Hi,

  • you can either not use isolate for the toolbar http://webix.com/snippet/55b456e2. Isolation makes sense only if you are going to define fixed IDs for toolbar elements. And as side effect it separates view from the rest of the app, so .getTopParentView() returns top parent in the isolated context.
  • or you can store top layout separately to use it in the handlers: http://webix.com/snippet/771cfbad

@Helga, thank you for your answer. That worked.