Ionic-framework: Feature: Able to add label text inside a toggle

Created on 18 Jan 2014  路  2Comments  路  Source: ionic-team/ionic-framework

E.g. so you can have
[Hot|Cold|

At the moment the toggle is one label, with on/off, but there are many UI scenarios where you effectively have two choices..... so by putting text in the toggle this enables that (rather than having to have a 2 selection radio)

Most helpful comment

I don't agree this should be closed. The title of the ticket is referring to "label text" inside toggle, not "value text". It would be nice to have 2 additional parameters fed into the directive ...

ng-true-label
ng-false-label

The rendering of the toggle would be similar to http://codepen.io/tiemin/pen/yyPQyJ/

All 2 comments

This is now possible with the ng-true-value and ng-false-value attributes.

I don't agree this should be closed. The title of the ticket is referring to "label text" inside toggle, not "value text". It would be nice to have 2 additional parameters fed into the directive ...

ng-true-label
ng-false-label

The rendering of the toggle would be similar to http://codepen.io/tiemin/pen/yyPQyJ/

Was this page helpful?
0 / 5 - 0 ratings