mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #347] [MERGED] Add OnChange handler to the TextInput widget #344
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#344
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/347
Author: @LQR471814
Created: 1/29/2023
Status: ✅ Merged
Merged: 2/8/2023
Merged by: @mum4k
Base:
devel← Head:devel📝 Commits (4)
2cbce1cAdd OnChange event handler to TextInput widgetf28390bFixed an issue with ReadAndClear, Add example to textinputdemo.go, Add testse87b1cbcapitalize text45f26a8address comments📊 Changes
5 files changed (+343 additions, -222 deletions)
View changed files
📝
widgets/textinput/editor.go(+12 -3)📝
widgets/textinput/editor_test.go(+286 -210)📝
widgets/textinput/options.go(+15 -0)📝
widgets/textinput/textinput.go(+1 -2)📝
widgets/textinput/textinputdemo/textinputdemo.go(+29 -7)📄 Description
This PR adds an
onChangeoption to the TextInput widget. This is an event handler similar to the existingOnSubmit, it is called whenever a character is inserted or deleted from the TextInput's text content.Rudimentary tests have been written and an example of it's usage is given in
textinputdemo.go.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.