drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.39k stars 1.63k forks source link

Is a ReadOnly status going to be available for iCheck? #299

Open jhyland87 opened 8 years ago

jhyland87 commented 8 years ago

I was half way through switching from Labelauty to iCheck, because iCheck supports radio buttons as well as checkboxes, and it just looks awesome. But then I realized that iCheck doesn't seem to have a readonly feature for the inputs.

I really need the readonly, because I still need the values of the inputs to be send through the form, they just cant be edited.

I thought that maybe it would be easy to just edit the icheck.js myself and do it, but its a pain with mostly ternary operations everywhere, seemingly making it so the status is just a true or false binary.

Is there a way to accomplish readonly? and if not, do you plan on implementing it soon?

Thanks!

bcalik commented 8 years ago

Any progress on this?

MarJose123 commented 5 years ago

you can use this one instead style="pointer-events: none;" on the checkbox that you want to become readable only

JasmineXavier commented 1 week ago

Add style="pointer-events: none;" to the div of checkbox