This question demonstrates that overriding an Ember.View instance's didInsertElement
allows you to execute some code after the view's element is in the DOM.
Naturally, overriding didInsertElement
on the child view class you add to an Ember.CollectionView will run the hook after each child view is rendered and inserted.
Two collection-oriented hooks on Ember.CollectionView, arrayDidChange
and contentDidChange
, execute after the underlying content has changed, but they execute before any rendering takes place. arrayDidChange
is executed for every element added to the array, and contentDidChange
wraps the content binding.
I would like to be able to hook around the rendering pipeline, something like willInsertCollection
and didInsertCollection
, to manipulate the DOM before and after all child elements are rendered - essentially, before and after filters around contentBinding
.
Any ideas? I'm stumped.