You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've only found this way (setTimeout) to activate a custom checkbox once a FormView is rendered.
Is there a proper way to do so?
varContactView=View.extend({autoRender: true,template: '<form></form>',render: function(){this.renderWithTemplate();this.form=newFormView({autoRender: true,fields: [newCheckboxView({name: 'newsletter',label: 'Newsletter'})],});this.registerSubview(this.form);//// here is the temporary fix//setTimeout(function(){$(this.query('.ui.checkbox')).checkbox();}.bind(this),0);returnthis;}});
The text was updated successfully, but these errors were encountered:
Hi,
I've only found this way (
setTimeout
) to activate a custom checkbox once a FormView is rendered.Is there a proper way to do so?
The text was updated successfully, but these errors were encountered: