nstudio / nativescript-checkbox

NativeScript plugin for checkbox UI component
Other
119 stars 56 forks source link

Can we have a 'readonly' property? #89

Closed danvick closed 5 years ago

danvick commented 6 years ago

Hi guys, first of all, Great Plugin! I'd like to request a 'readonly' (or 'disabled') property so that the Checkbox can be disabled. Thanks

damianocorrado commented 6 years ago

I join the request. It can be a very useful option. Great job, thank you.

shiv19 commented 6 years ago

Have you tried setting editable="false" on it?

danvick commented 6 years ago

@shiv19 editable="false" doesn't seem to be working

shiv19 commented 6 years ago

Oh okay, not sure about it then.

shiv19 commented 6 years ago

We'll add an editable property to keep it aligned with other NativeScript widgets

triniwiz commented 6 years ago

You can try setting isUserInteractionEnabled="false" and isEnabled="false" on the checkbox to disable it