【发布时间】:2025-12-10 11:55:01
【问题描述】:
我有一个 Ember 应用程序,页面上显示了一长串项目。列表的内容是根据用户查询计算的。有时,新列表需要一两秒才能呈现。我正在尝试在此渲染过程中显示加载指示器,而我真正需要的是一个处理程序,用于处理包含列表的标记何时完成重新渲染。这可能吗?
<div id="listContainer">
{{#each item in theList}}
...
{{/each}}
</ul>
theList: function() {
// return result of filtering baseList with the query
}.property('baseList', 'query')
actions: {
someHandler: function() {
// how can I catch when the #listContainer is finished rerendering?
}
}
【问题讨论】: