mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #221] Question: How to modify border title once the widget is instantiated? #122
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#122
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 @miguelmota on GitHub (Nov 4, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/221
Originally assigned to: @mum4k on GitHub.
How to modify border title once the widget is instantiated?
@mum4k commented on GitHub (Nov 4, 2019):
Hello @miguelmota, I am assuming you are asking about the container title? You should be able to utilize the dynamic layout feature.
In short you specify an ID for the container when creating it by passing this option:
github.com/mum4k/termdash@68bf0566e6/container/options.go (L308-L320)And then you can use the container.Update function, specifying the same ID and providing any set of new options, including a new title:
github.com/mum4k/termdash@68bf0566e6/container/container.go (L229-L235)However if you are asking about title of a specific widget, that might be different, please let me know.
@miguelmota commented on GitHub (Dec 11, 2019):
@mum4k makes perfect sense; thanks!