yuyang041060120 / angular2-ui-switch

angular2 ui switch component
http://yuyang041060120.github.io/angular2-ui-switch
MIT License
57 stars 36 forks source link

False State color #14

Open aquintiliano opened 7 years ago

aquintiliano commented 7 years ago

First of all, congrats, it's a great and easy-to-use component.

You let we change the True state color, but I want to change the false state color as well

misadjalovic commented 7 years ago

Yeah I tried as well to change the false state bg-color but no luck even with the change of the bg-color in the component css for the span element.

biskis commented 7 years ago

You can change the false (or off) color using switchOffColor param (no need to do anything in CSS)

For example, this will be green when on and red when off with white background.

<ui-switch color="#fff" switchColor="green" switchOffColor="red"></ui-switch>

fabrizziocht commented 6 years ago

but also we need to change defaultBgColor, please update this value with @Input decorator