mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #297] Export ListItems for easier state control #227
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#227
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @diamondburned on GitHub (Jun 8, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/297
https://github.com/rivo/tview/blob/master/list.go#L25 could be exported along with
*listItems, I don't see why not. Being able to modify individual list entries make it easier to control the state for reactive UI.@diamondburned commented on GitHub (Jun 8, 2019):
P/S on an unrelated topic: I feel like a lot of the things in
tviewhas no reasons to not be exported.@rivo commented on GitHub (Jul 5, 2019):
It's simple. Information hiding. I made a mistake already in exposing too much implementation and it limits my ability to add new features in some cases. But due to backwards compatibility, I'm not fixing that.
Maybe in the case of
listItem, there is an opportunity to bring it in line with, say,TreeNode. But I want to see an actual problem from an actual application first where this would be the best solution.