This question shows that overriding an instance of Ember.View didInsertElement allows didInsertElement to execute some code after the view element is in the DOM.
http://jsfiddle.net/gvUux/2/
Naturally, overriding didInsertElement in the child view class that you add to Ember.CollectionView will trigger the hook after rendering and inserting each child view.
http://jsfiddle.net/BFUvK/1/
The two collection-bound hooks on Ember.CollectionView, arrayDidChange and contentDidChange , are executed after the underlying content has been changed, but are executed before the rendering takes place. arrayDidChange is executed for each element added to the array, and contentDidChange completes the content binding.
I would like to be able to hook up a rendering pipeline, for example, willInsertCollection and didInsertCollection , to manipulate the DOM before and after all children are rendered - essentially before and after the filters around the contentBinding .
Any ideas? I'm at a dead end.
scottburton11
source share