开发者

Invoke callback when template loads?

开发者 https://www.devze.com 2023-03-23 17:53 出处:网络
I have got a few problems currently where I have a Cufon/Validation setup method that needs to be called when a template has loaded. As for some reason it doesn\'t always seem to activate correctly un

I have got a few problems currently where I have a Cufon/Validation setup method that needs to be called when a template has loaded. As for some reason it doesn't always seem to activate correctly until the template has finished loading (currently calling setup within documentReady).

Is there any way to do anything similar to this:

template: { name: "myTemplate", loaded: someCallback }

I couldn't see anything in the documenta开发者_如何转开发tion about this, but I am not sure if there is some best practise to side step the need for this functionality.


It does supports afterRender . See Note 4 in the template binding documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消