in template
ul class="collapsible">
{{#each pendingMembers}}
li
....
/li
{{/each}}
/ul
in Template.templateName.rendered , $('.collapsible').collapsible({ "accordion" : false });
Collapsible doesn't work in this case.
I had to use setTimeout like below to wait some time until dynamic markup is completed.
Template.admin.rendered = function() {
Meteor.setTimeout(function(){
$('.collapsible').collapsible();
},1000)
}
Any Intelligent solution for this?
ABOVE solution doesn't work when pendingMembers are changed from real-time update by other user.
in template
ul class="collapsible">
{{#each pendingMembers}}
li
....
/li
{{/each}}
/ul
in Template.templateName.rendered , $('.collapsible').collapsible({ "accordion" : false });
Collapsible doesn't work in this case.
I had to use setTimeout like below to wait some time until dynamic markup is completed.
Template.admin.rendered = function() {
Meteor.setTimeout(function(){
$('.collapsible').collapsible();
},1000)
}
Any Intelligent solution for this?
ABOVE solution doesn't work when pendingMembers are changed from real-time update by other user.