[GH-ISSUE #518] Feature request: add Checkbox.SetCheckedRune #378

Closed
opened 2026-03-04 01:04:28 +03:00 by kerem · 1 comment
Owner

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 X for the checkedRune variable.

See https://github.com/rivo/tview/blob/master/checkbox.go#L174

By add the setter, users can override this.

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 `X` for the `checkedRune` variable. See https://github.com/rivo/tview/blob/master/checkbox.go#L174 By add the setter, users can override this.
kerem closed this issue 2026-03-04 01:04:28 +03:00
Author
Owner

@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.

<!-- gh-comment-id:729466968 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#378
No description provided.