mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #518] Feature request: add Checkbox.SetCheckedRune #378
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#378
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 @emicklei on GitHub (Oct 23, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/518
Currently, the Checkbox has a hard coded value
Xfor thecheckedRunevariable.See https://github.com/rivo/tview/blob/master/checkbox.go#L174
By add the setter, users can override this.
@rivo commented on GitHub (Nov 18, 2020):
Thanks. Makes sense. I've added
SetCheckedString()with the latest commit. It's a string because some people may want to use emojis and those often require more than one rune.