Closed maiamachine closed 9 years ago
Added the ability to add text to the switch. The user can add optional attributes of "on" and "off" to the switch element like this:
<switch id="enabled" name="enabled" ng-model="enabled" on="On" off="Off" class="green"></switch>
If the user does not want to use the words On/Off, they can set any other value here, such as Yes/No:
<switch id="enabled" name="enabled" ng-model="enabled" on="Yes" off="No" class="green"></switch>
These will be added to the switch as shown in attached screenshot. An option class of "wide" has also been added to the last switch to allow it to accommodate more text.
Good, thanks. Let's wait for the feedback from others and then we merge.
:+1:
I was just going to fork and implement this, and I decided to check PRs. This is a must I believe.
Added the ability to add text to the switch. The user can add optional attributes of "on" and "off" to the switch element like this:
If the user does not want to use the words On/Off, they can set any other value here, such as Yes/No:
These will be added to the switch as shown in attached screenshot. An option class of "wide" has also been added to the last switch to allow it to accommodate more text.