Page 1 of 1

How to setup an input as toggle control

Posted: Sat Jun 06, 2015 4:47 am
by Lai

In ionic framework, how to configure an input to be a toggle control.


How to setup an input as toggle control

Posted: Sat Jun 06, 2015 7:51 am
by Alena Prykhodko

How to setup an input as toggle control

Posted: Sun Jun 07, 2015 2:45 am
by Lai

If I set the class of input to "toggle" and the type of input to "checkbox", track and handle div are not added to the final html. Also, I can't do a list of toggle control.


How to setup an input as toggle control

Posted: Tue Jun 09, 2015 7:07 pm
by Evgene Karachevtsev

Hello Lai,

We are very sorry for the delay.
At the program level you would need to work with the input's type checkbox which is hidden, ie its value should be read and written, or you may hang ng-model to it.