Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created October 1, 2017 03:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save freshcutdevelopment/13ac72e48b191939b553967f63759c1e to your computer and use it in GitHub Desktop.
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