[PR #286] [MERGED] Allow updating the callback function on an existing button instance. #304

Closed
opened 2026-03-03 16:23:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mum4k/termdash/pull/286
Author: @mum4k
Created: 12/30/2020
Status: Merged
Merged: 12/30/2020
Merged by: @mum4k

Base: develHead: 243-button-set-callback


📝 Commits (2)

  • d70bcd1 Allow updating the callback function on an existing button instance.
  • 93428e8 Allow a no-op button with a nil callback.

📊 Changes

3 files changed (+153 additions, -29 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 widgets/button/button.go (+21 -12)
📝 widgets/button/button_test.go (+130 -17)

📄 Description

Works on #243.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mum4k/termdash/pull/286 **Author:** [@mum4k](https://github.com/mum4k) **Created:** 12/30/2020 **Status:** ✅ Merged **Merged:** 12/30/2020 **Merged by:** [@mum4k](https://github.com/mum4k) **Base:** `devel` ← **Head:** `243-button-set-callback` --- ### 📝 Commits (2) - [`d70bcd1`](https://github.com/mum4k/termdash/commit/d70bcd1afba7c66dc4003e58dbc94d5d3d1f2c5b) Allow updating the callback function on an existing button instance. - [`93428e8`](https://github.com/mum4k/termdash/commit/93428e8091d433450642309de3b6dacee0ab09b1) Allow a no-op button with a nil callback. ### 📊 Changes **3 files changed** (+153 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `widgets/button/button.go` (+21 -12) 📝 `widgets/button/button_test.go` (+130 -17) </details> ### 📄 Description Works on #243. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:23:47 +03:00
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#304
No description provided.