Terminal.Gui
Terminal.Gui copied to clipboard
Add View.Insert(View, int) and RemoveAt(int) methods
I'd like to see View.Insert(View, int) and RemoveAt(int) methods, so the item at certain position can be added or removed. I can create a PR...
Why?
For tab order?
@tig I was creating React-ish approach to UI and hence need to deal with items at certain position.
FYI https://github.com/MihaMarkic/SharpReact there is a sample against GUI
@tig I was creating React-ish approach to UI and hence need to deal with items at certain position.
Sorry if I'm being dense, but when you say "position" do you mean screen position? Position in z-order? Or, position in the tab order?
@tig I think I was referring to position in Views array (not UI). Does that make sense to you?
It does, but what I don't understand is WHY.
Right now the order in the array matters for both tab order (focus) and z-order. I believe this is not a great design. I was curious if you had a user or API requirement that would help influence how we fix this.
It matters if you want to have virtual array and target (GUI) array in sync.
Closing as quite stale.