[PR #272] [CLOSED] Give metadata about events to widgets. #293

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

📋 Pull Request Information

Original PR: https://github.com/mum4k/termdash/pull/272
Author: @mum4k
Created: 11/25/2020
Status: Closed

Base: develHead: 243-event-meta


📝 Commits (2)

  • dd6acb1 Give metadata about events to widgets.
  • 43c0f26 Updating CHANGELOG.

📊 Changes

24 files changed (+262 additions, -125 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 container/container.go (+46 -23)
📝 container/container_test.go (+91 -22)
📝 private/fakewidget/fakewidget.go (+17 -9)
📝 private/fakewidget/fakewidget_test.go (+12 -6)
📝 termdash_test.go (+20 -5)
📝 widgetapi/widgetapi.go (+18 -8)
📝 widgets/barchart/barchart.go (+2 -2)
📝 widgets/button/button.go (+2 -2)
📝 widgets/button/button_test.go (+2 -2)
📝 widgets/donut/donut.go (+2 -2)
📝 widgets/donut/donut_test.go (+2 -2)
📝 widgets/gauge/gauge.go (+2 -2)
📝 widgets/gauge/gauge_test.go (+2 -2)
📝 widgets/heatmap/heatmap.go (+2 -2)
📝 widgets/linechart/linechart.go (+2 -2)
📝 widgets/linechart/linechart_test.go (+8 -8)
📝 widgets/segmentdisplay/segmentdisplay.go (+2 -2)
📝 widgets/segmentdisplay/segmentdisplay_test.go (+2 -2)
📝 widgets/sparkline/sparkline.go (+2 -2)

...and 4 more files

📄 Description

Widgets now receive an additional argument together with keyboard and mouse events that provides metadata about the event. Initially it indicates if the widget's container was focused at the time of the event.


🔄 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/272 **Author:** [@mum4k](https://github.com/mum4k) **Created:** 11/25/2020 **Status:** ❌ Closed **Base:** `devel` ← **Head:** `243-event-meta` --- ### 📝 Commits (2) - [`dd6acb1`](https://github.com/mum4k/termdash/commit/dd6acb15e188c5cf197fe9bc1a7833f82e6a2cc3) Give metadata about events to widgets. - [`43c0f26`](https://github.com/mum4k/termdash/commit/43c0f26c5ed52deca855e9904800f69b22e93599) Updating CHANGELOG. ### 📊 Changes **24 files changed** (+262 additions, -125 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `container/container.go` (+46 -23) 📝 `container/container_test.go` (+91 -22) 📝 `private/fakewidget/fakewidget.go` (+17 -9) 📝 `private/fakewidget/fakewidget_test.go` (+12 -6) 📝 `termdash_test.go` (+20 -5) 📝 `widgetapi/widgetapi.go` (+18 -8) 📝 `widgets/barchart/barchart.go` (+2 -2) 📝 `widgets/button/button.go` (+2 -2) 📝 `widgets/button/button_test.go` (+2 -2) 📝 `widgets/donut/donut.go` (+2 -2) 📝 `widgets/donut/donut_test.go` (+2 -2) 📝 `widgets/gauge/gauge.go` (+2 -2) 📝 `widgets/gauge/gauge_test.go` (+2 -2) 📝 `widgets/heatmap/heatmap.go` (+2 -2) 📝 `widgets/linechart/linechart.go` (+2 -2) 📝 `widgets/linechart/linechart_test.go` (+8 -8) 📝 `widgets/segmentdisplay/segmentdisplay.go` (+2 -2) 📝 `widgets/segmentdisplay/segmentdisplay_test.go` (+2 -2) 📝 `widgets/sparkline/sparkline.go` (+2 -2) _...and 4 more files_ </details> ### 📄 Description Widgets now receive an additional argument together with keyboard and mouse events that provides metadata about the event. Initially it indicates if the widget's container was focused at the time of the event. --- <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:44 +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#293
No description provided.