Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
UX selectize inline render
render: {
option: (item, escape) => {
return `<template>
<span class="title">
<span class="name">
<span class="flag-icon flag-icon-${code.toLowerCase()} flag-icon-squared">
</span>
</span>
</span>
<span class="description">${code} - ${name} </span>
</template>`
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment