angular-toggle-switch icon indicating copy to clipboard operation
angular-toggle-switch copied to clipboard

Disabled with bind value

Open zauker opened this issue 9 years ago • 7 comments

I need to disable or enable dynamically the toggle switch i tried to use the disabled attribute but it seems that is not working well.

zauker avatar Oct 07 '15 15:10 zauker

Try ng-disabled

On Wed, Oct 7, 2015 at 11:04 AM, Michele Menciassi [email protected] wrote:

I need to disable or enable dynamically the toggle switch i tried to use the disabled attribute but it seems that is not working well.


Reply to this email directly or view it on GitHub: https://github.com/cgarvis/angular-toggle-switch/issues/78

cgarvis avatar Oct 07 '15 18:10 cgarvis

I tried to use ng-disabled attribute but without success. This is the plunker example that i made, i did some errors?

http://plnkr.co/edit/9kHn7zRgppvfMCk3j4Wa?p=preview

Any help is appreciated.

zauker avatar Oct 08 '15 10:10 zauker

+1

Sheeryada avatar Oct 16 '15 20:10 Sheeryada

+1

mnegahi avatar Nov 25 '15 19:11 mnegahi

+1

Grant-Lay avatar Dec 14 '15 07:12 Grant-Lay

It depends on the binding of the directive scope field "disabled" setted to "@". Set the binding to "=" and enjoy.

marcusvezz avatar Apr 12 '16 06:04 marcusvezz

+1 @marcusvezz . I just did a mod with '=' bind on disabled attribute.

toggleSwitch directive scope

scope: { disabled: '=', onLabel: '@', offLabel: '@', knobLabel: '@' },

segux avatar Dec 20 '16 10:12 segux