mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #272] [CLOSED] Give metadata about events to widgets. #293
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#293
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?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/272
Author: @mum4k
Created: 11/25/2020
Status: ❌ Closed
Base:
devel← Head:243-event-meta📝 Commits (2)
dd6acb1Give metadata about events to widgets.43c0f26Updating 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.