I am adding a custom button to a view (in /modals/duplicate.js) and would like to trigger a custom event to be handled by the parent code (/record/detail.js) that subscribes to it.
In my button's click handler I do this:
In the parent view I did
But it did not work. Is there some documentation I am missing?
In my button's click handler I do this:
Code:
this.trigger('customEvent');
Code:
[FONT=courier new]this.listenToOnce(view, 'customEvent', function () {/*... code ... */}[/FONT]
Comment