Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Ux selectize component, get HTML
loadSelectItemView(templateUrl) {
return this.viewEngine.loadViewFactory(templateUrl);
}
getHtml(item, factory) {
const childContainer = this.container.createChild();
const view = factory.create(childContainer);
view.bind(item);
let country = DOM.createElement("div");
view.appendNodesTo(country);
return country.outerHTML;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment