You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2018. It is now read-only.
So first three arguments are product of node.element and this property is not defined for DynamicNodes build for @searchTopicsCount or @pager, thats why the second and third argument is undefined.
How this is suppose to work? I expected compiled view as the first argument but instead of that I got node list in first three arguments for this particular case. I need to hookup after view is rendered to initialize jQuery UI Sortable on the result set since I'm preloading the result set when the app is initialized. Is there a better way? Something like "view rendered" event?
The text was updated successfully, but these errors were encountered:
Hmm, that's a good question. I think when we added this feature we didn't really consider what would happen if root nodes were dynamic nodes. So far we aren't really exposing Node objects to the user, so sending those in isn't great either. I suppose we could simply remove all undefined items before we send in to the callback, but that's not very intuitive either.
I'm trying also to use fragment = Serenade.document.createElement('div'); since DocumentFragment can't be used as jQuery argument since its API is too basic and lacks needed selectors.
I think you might have an easier time adding a tbody[on:load=someControllerCallback] in your view. It's not super-well documented that this is possible right now, but it's easier for cases like this.
Controller.loaded doesn't work for templates with multiple root nodes, especially when there are some DynamicNodes.
template.serenade:
controller.coffee:
Expected input to
loaded
isview, model
, however the argument list for this template is:The related code in
View.prototype.render
is following:So first three arguments are product of
node.element
and this property is not defined forDynamicNodes
build for@searchTopicsCount
or@pager
, thats why the second and third argument is undefined.How this is suppose to work? I expected compiled view as the first argument but instead of that I got node list in first three arguments for this particular case. I need to hookup after view is rendered to initialize jQuery UI Sortable on the result set since I'm preloading the result set when the app is initialized. Is there a better way? Something like "view rendered" event?
The text was updated successfully, but these errors were encountered: