Closed jurgenwerk closed 8 years ago
See the first example here https://github.com/knownasilya/ember-cli-toggle#labels
@knownasilya thank you, this works. In my opinion, this API is fairly unintuitive and unusual. To set possible toggle values in a string, and pass it in a property named onLabel/offLabel
just seems kinda odd. I'm wondering what led you to this decision in the latest major release? On the other hand, thanks a lot for making and maintaining this add-on, I use it in a couple of projects.
Mainly it was from a contributors PR. I'm open for alternatives.
I'm having difficulties getting this to work with toggling booleans.
component:
template:
.. then the output is either
my value: on
ormy value: off
. Is it possible to simply toggle betweentrue
andfalse
?