Files
AVEF/imports/util/selectize/selectize.html
Wynne Crisman 94000458e4 Copied starter Meteor App files.
Cut and paste of the BasicMeteorApp.
2018-07-30 14:15:39 -07:00

57 lines
1.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template name="Selectize">
<div class="selectize-control selectize {{#if multiple}}multi{{else}}single{{/if}} {{#if removeButton}}plugin-remove_button{{/if}} {{#if loading}}loading{{/if}}">
<select name={{name}} multiple={{multiple}} id={{id}} data-schema-key={{dataSchemaKey}}>
<option value=""></option>
{{#each getItems}}
<option value={{value}} selected={{selected}}>{{label}}</option>
{{/each}}
</select>
<div class="selectize-input items not-full has-options has-items {{#if disabled}}disabled{{/if}} {{#if open}}focus input-active dropdown-active{{/if}}">
{{#if getPlaceholder}}
<div class="selectize-placeholder {{#if open}}hidden{{/if}}">
{{getPlaceholder}}
</div>
{{/if}}
{{#if inputPosition -1}}
<input type="text" autocomplete="off" tabindex="" class="js-selectizeInput">
{{/if}}
{{#each getItemsSelected}}
<div data-value={{value}} class="item">
{{label}}
{{#if removeButton}}
<a href="#" class="remove" tabindex="-1" title="Remove">×</a>
{{/if}}
</div>
{{#if inputPosition @index}}
<input type="text" autocomplete="off" tabindex="" class="js-selectizeInput">
{{/if}}
{{/each}}
</div>
<div class="selectize-dropdown js-selectize-dropdown {{#unless open}}hidden{{/unless}}">
<div class="selectize-dropdown-content">
{{#each getItemsUnselected}}
<div data-value={{value}} data-index={{@index}} data-selectable class="option {{#if activeOption @index}}active{{/if}} {{isPlaceholder}}">
{{label}}
</div>
{{/each}}
{{#if create}}
{{#if getSearchText}}
<div data-selectable="" data-index='create' class="create {{#if activeOption 'create'}}active{{/if}}">
{{#if createText}}
{{{createText}}}
{{else}}
Add
{{/if}}
<strong>{{getSearchText}}</strong>
</div>
{{/if}}
{{/if}}
</div>
</div>
</div>
</template>