Abe Miessler Abe Miessler - 1 year ago 102
CoffeeScript Question

How to execute code after reactive table has rendered?

I have a template called

. In that template I have a reactive table. The code looks something like this:

b {{formattedDate}}
+reactiveTable collection=posts settings=settings selector=selector class="curator-inbox-table" rowClass="curator-inbox-table-row"

I would like to execute a piece of code after the reactive table renders. I had tried placing it in the
event for
like so:

Template.inboxSection.onCreated ->
# do something with the reactive table...

but that doesn't work. How can I execute some code after the reactive table renders?

Answer Source


Template.inboxSection.onRendered ->

and see if that does the trick.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download