knownasilya / ember-toggle

Checkbox based Toggle Switches for Ember
http://knownasilya.github.io/ember-toggle/
MIT License
112 stars 52 forks source link

Yield in template.hbs #58

Closed ScottSmix closed 7 years ago

ScottSmix commented 7 years ago

Would be nice to have a {{yield}} at line 6 on template.hbs so that we can add our own question labels like:

{{#x-toggle value=showHidden onToggle=(mut showHidden)}} Show hidden? {{/x-toggle}}

Any thoughts?

knownasilya commented 7 years ago

Sounds reasonable.

knownasilya commented 7 years ago

Give https://github.com/knownasilya/ember-toggle/tree/simplify a try, see the example here: https://github.com/knownasilya/ember-toggle/blob/simplify/tests/dummy/app/templates/application.hbs#L184

knownasilya commented 7 years ago

The above changes are now in the master branch. See the dummy app for examples.