mirror of
https://github.com/rivo/tview.git
synced 2026-04-29 06:45:56 +03:00
[GH-ISSUE #102] Feature: change List -> listitem -> Maintext for feature of showing status of on/off #80
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#80
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 @stephencheng on GitHub (Apr 17, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/102
I am not sure if this feature is in there but I couldn't find it from source code.
Basically when I select a list item to execute a method, I'd like to add a visible change to the text/color of the listitems's maintext, eg,
initially the text is:
Action: click, the main text turns to below fake code:
Action: click again, the main text turns to initial text
I'd like a exported method such as
Since you already supplied a method: GetCurrentItem to obtain the current item's index, it's all set if these methods could be exposed.
Thanks
@rivo commented on GitHub (Apr 19, 2018):
Please have a look at the referenced commit. This should give you functions to change a list item's text.