Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created October 1, 2017 02:47
  • 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/92a9070195b5babffde4a5c6ff975f05 to your computer and use it in GitHub Desktop.
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