如何在反应 table 呈现后执行代码?

How to execute code after reactive table has rendered?

我有一个名为 inboxSection 的模板。在该模板中,我有一个 reactive table。代码看起来像这样:

template(name="inboxSection")
  .col-xs-12.curator-inbox-section-head
    .pull-left
      b {{formattedDate}}
    .pull-right
    +reactiveTable collection=posts settings=settings selector=selector class="curator-inbox-table" rowClass="curator-inbox-table-row"

我想在反应式 table 渲染后执行一段代码。我试过将它放在 inboxSectiononCreated 事件中,如下所示:

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

但这不起作用。如何在反应式 table 渲染后执行一些代码?

尝试

Template.inboxSection.onRendered ->

看看是否能解决问题。