Fire event after alpaca is loaded
noith opened this issue · 2 comments
noith commented
Hello. I'm using alpaca to generate forms from php and it is not good at all to mix php and js code.
Read docs and couldn't find, if there is any event like .loaded() or rendered() in alpaca, to which i can attach handlers? May be it would be cool to make one?
martingaleh commented
postRender maybe:
http://www.alpacajs.org/docs/api/observables.html
noith commented
Sure it works, and i know about that, but wanted smth like
$('#form').alpaca('get').postRender(function(){ code here})
The point is that i generate json from php and dont want to mix js and php code