Angular JS - Bootstrap Switch - 3.3.2 - Need help with adjusting width of bootstrap switch

16 views
Skip to first unread message

Sheldon Dsouza

unread,
May 29, 2019, 12:56:08 AM5/29/19
to Angular and AngularJS discussion
Hi,

I am using bootstrap switch so that my checkbox can toggle between 'ON' & 'OFF' value.
The issue is that i am unable to change the width of the switch.



Updating the below 2 properties by providing the required pixels do not have any impact on the width of the switch

// Width of the left and right sides in pixels
handleWidth:'auto'

// Width of the center handle in pixels
labelWidth:'auto'

Additionally, the width of the switch should change as and when the window (actually a popup) resizes.

Can someone please help with resizing the width of the bootstrap switch and also when the popup (containing my switches) resizes?

Please let me know if more details are required.

Thanks,
Sheldon

Sander Elias

unread,
Jun 7, 2019, 2:04:37 AM6/7/19
to Angular and AngularJS discussion
Hi Sheldon,

You stated you are using AngularJS, right? You need a version of your button that's AngualrJS enabled. Luckily those are usually around.
One of the issues, why AngularJs is being replaced by Angular, is 3rth party libraries compatibility.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages