Fork me on GitHub

Some HtmlWidgets w/ ModelView

See More

Some text here.. Some text here.. Some text here.. Some text here.. Some text here.. Some text here..\

Some more text here.. Some more text here.. Some more text here.. Some more text here..'+ HtmlWidget.widget('/modal', {'id':'a_modal','class':'w-dark','autoclose':true}) ); // do the necessary plumbing var importer = new Importer(); HtmlWidget.assets(assets); importer.register('assets', HtmlWidget.assets(true, '')); HtmlWidget.enqueueAssets(importer.enqueue.bind(importer)); ModelView.View.HtmlWidget = HtmlWidget; new ModelView.View('view') .model(new ModelView.Model('model')) .template(document.getElementById('app-content').innerHTML) .context({ options: HtmlWidget.options, code: HtmlWidget.code }) .actions({ submit: function(evt, el) { alert('Submitted!'); } }) .livebind(true) .autobind(false) .bind(['click'], document.getElementById('app')) .on('render', () => { importer.assets('styles'); importer.assets('scripts'); }) .render() ; })(ModelView, Importer, HtmlWidget);