Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<require from="../attributes/ux-selectize"></require>
<require from="selectize/dist/css/selectize.default.css"></require>
<require from="flag-icon-css/flag-icon.css"></require>
<label for="options">Select country</label>
<select id="select-country" if.bind="selected"
ux-selectize="httpQuery.bind: getCountries; selected.bind: selected; templateUrl.bind:templateUrl; valueField: code; labelField:name; searchField:name; "
placeholder="select country..."
<option value.bind="selected.code">${}</option>
<span if.bind="country">selected: <span class="flag-icon flag-icon-${country.toLowerCase()} flag-icon-squared"></span> (${country}) </span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.