AmremadDev / country-list-picker

MIT License
3 stars 3 forks source link

"Read only" state #5

Open pvc00357-git opened 1 year ago

pvc00357-git commented 1 year ago

Hi,

sometimes I just want to display the selected county and not let the users change it. It would be nice to have an "enabled" or "active" property that, when false, would not call the dialog.

Best Regards,

Pedro

AmremadDev commented 1 year ago

If you set the value of onChanged to null, you may be able to accomplish this. I believe this approach could work.

pvc00357-git commented 1 year ago

I set the value of onChanged to null, and I could still touch the picker and make the dialog appear; the idea would be to prevent the dialog from appearing, thus having a "read only" setup.