First of all, thanks a lot for your work on tview, I'm using it in a small project and so far it works quite well. There are just a few missing pieces, one of which is: disabling and hiding form fields. E.g. depending on the other values of the form, it often makes sense to disable/enable some input fields, or even hide/show them.
I tried to mimic it by setting a different background color for the field I want to disable, but that didn't work either because the Form component overrides it by calling SetFormAttributes for all components. So far I just set text to n/a and use acceptance function which stops accepting any values when the field should be disabled, but that's far from perfect anyway: the field should change its appearance to make it clear that it's disabled, and should't receive focus.
Do you think you'd be open to implementing that?
First of all, thanks a lot for your work on tview, I'm using it in a small project and so far it works quite well. There are just a few missing pieces, one of which is: disabling and hiding form fields. E.g. depending on the other values of the form, it often makes sense to disable/enable some input fields, or even hide/show them.
I tried to mimic it by setting a different background color for the field I want to disable, but that didn't work either because the
Formcomponent overrides it by callingSetFormAttributesfor all components. So far I just set text ton/aand use acceptance function which stops accepting any values when the field should be disabled, but that's far from perfect anyway: the field should change its appearance to make it clear that it's disabled, and should't receive focus.Do you think you'd be open to implementing that?