Feature request: radio buttons
Radio buttons, checkbox-like items presented in a group where at most one item can be checked at once (often, exactly one item must be checked), are common in desktop UI widget kits. Its omission is notable here. I'm considering using tview for an unserious personal project and would need radio buttons.
I've started implementing radio buttons (and radio button groups) on top of Checkbox in a fork: https://github.com/AdamNorberg/tview/tree/radio-buttons . I have not yet written demo code or stabilized it. I'll continue with this if my approach so far is at least somewhat acceptable and there is interest by the project owner.
(The most questionable detail of my implementation is probably the implementation of the "stay checked" behavior, which just goes back and re-checks the unchecked item, skipping user-provided callbacks for both.)
Source: rivo/tview