How to use widgets that need JavaScript calls to initialize?

The app I’m working on needs to use a particular widget (jquery.layout) on a single view. That widget is initialized by a JavaScript call.

How can I use a widget like this? Is there an event that gets fired when a view is rendered?


1 Like

What about UI.Utils?


Thanks for your reply, robf.

Forgive me for being dense, but I don’t see how UI.Utils helps here.

I see the Event Binder, but I’m not aware of an event being fired when a view has completed DOM updates.

I see the jQuery Passthrough, but that appears to be specific to calling jQuery methods. In my case, I have some JavaScript that I would normally call in $(document).ready(), except I don’t have that available in a view.

I don’t see anything else in UI.Utils that appears to be pertinent.

However, I’d be happy to be proven wrong. Care to enlighten me?