Skip to content

Instantly share code, notes, and snippets.

@ro0gr
Last active July 2, 2016 17:37
Show Gist options
  • Save ro0gr/a6deb9d74e15f876a3cd7386545a30ba to your computer and use it in GitHub Desktop.
Save ro0gr/a6deb9d74e15f876a3cd7386545a30ba to your computer and use it in GitHub Desktop.
amount-selector
<p>Похоже есть идея как разрулить разные варианты расположения элементов в amount selector и тому подбных</p>
{{#amount-selector tagName="fieldset" as |section| }}
{{#if (eq section "amountField")}}
{{amount-field}}
{{/if}}
{{#if (eq section "currencySelector")}}
{{currency-selector}}
{{/if}}
{{/amount-selector}}
<br>
{{outlet}}
<label>
amount: <br/>
<input placeholder="Shiny amount field" />
</label>
<legend>Amount selector</legend>
{{yield 'amountField'}}
{{yield 'currencySelector'}}
{{yield}}
<label>
currency: <br/>
<select>
<option>ua</option>
<option>юань</option>
</select>
</label>
{
"version": "0.10.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.6.0",
"ember-data": "2.6.1",
"ember-template-compiler": "2.6.0"
},
"addons": {
"ember-array-helper": "0.0.1",
"ember-truth-helpers": "1.2.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment