Lai
Posts: 0
Joined: Fri May 08, 2015 4:12 pm

How to setup an input as toggle control

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

Lai
Posts: 0
Joined: Fri May 08, 2015 4:12 pm

How to setup an input as toggle control

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to setup an input as toggle control

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.

Return to “Issues”