2016-10-20 13 views
0

私は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" 

リアクティブテーブルのレンダリング後にコードを実行したいと思います。私はそうのようなinboxSectionためonCreatedイベントに置くしようとした:

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

が、それは動作しません。どのように反応テーブルのレンダリング後にいくつかのコードを実行できますか?

答えて

1

Template.inboxSection.onRendered -> 

を試してみて、それがトリックを行うかどうかを確認します。

+0

はい!なぜ私はそれを考えなかったのですか?ありがとう! –

関連する問題