Open AhmadDeel opened 3 years ago
I tried different values of switch-size, sometimes worked for me but others didn't. I could not get clean styles in any builds, development, or production!
HERE IS MY HTML
<bSwitch [(ngModel)]="switchStat.state" [switch-size]="switchStat.size" (changeState)="onChange($event)"></bSwitch>
AND MY TS CODE
switchStat: any = {
offText: "Off",
onText: "On",
baseClass: "bootstrap-switch",
size: "mini",
animate: true,
animated: false,
disabled: false,
readonly: false,
indeterminate: false,
inverse: true,
color: "primary",
offColor: "",
labelText: "",
state: true,
value: true,
inverseValue: false,
handleWidth: "auto",
labelWidth: "auto",
offColorValue: false,
offTextValue: false,
wrapperClass: "bootstrap-switch",
};
Bug Report or Feature Request (mark with an
x
)Versions.
The version of angular: 9.3.1 The version of this library: 2.0.5
the switch style sometimes is exactly like the presented but other times, especially in the build, is like the images bellow