PyInquirer
PyInquirer copied to clipboard
Checkbox: disable choices based on answers
I am trying to address a use-case where let's say I have a checkbox with 5 options. If I select option 1 then options 2 through 5 should be disabled. Similary, if I unselect option 2 then options 2 to 5 should be enabled again.
Is this possible with the current state of the implementation?
Its not actually impossible if you employ a custom event handler. You can disable a checkbox with the disable
properties
Can we currently set custom event handlers? Didn't find anything in the readme.