Skip to content

It doesn't work well with dynamic template. how can we solve the problem? #10

@vega-soft

Description

@vega-soft

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions