[GH-ISSUE #221] Question: How to modify border title once the widget is instantiated? #122

Closed
opened 2026-03-03 16:22:33 +03:00 by kerem · 2 comments
Owner

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?

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?
kerem 2026-03-03 16:22:33 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

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

<!-- gh-comment-id:549578960 --> @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](https://github.com/mum4k/termdash/wiki/Dynamic-layout) feature. In short you specify an ID for the container when creating it by passing this option: https://github.com/mum4k/termdash/blob/68bf0566e6ec8effaf6e83400ef0046347a5f5f1/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: https://github.com/mum4k/termdash/blob/68bf0566e6ec8effaf6e83400ef0046347a5f5f1/container/container.go#L229-L235 However if you are asking about title of a specific widget, that might be different, please let me know.
Author
Owner

@miguelmota commented on GitHub (Dec 11, 2019):

@mum4k makes perfect sense; thanks!

<!-- gh-comment-id:564763434 --> @miguelmota commented on GitHub (Dec 11, 2019): @mum4k makes perfect sense; thanks!
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/termdash#122
No description provided.