mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #449] [CLOSED] Add support for read only form items #957
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#957
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/rivo/tview/pull/449
Author: @berrange
Created: 5/27/2020
Status: ❌ Closed
Base:
master← Head:form-readonly📝 Commits (1)
78031b2Add support for read only form items📊 Changes
3 files changed (+173 additions, -30 deletions)
View changed files
📝
checkbox.go(+48 -8)📝
dropdown.go(+50 -13)📝
inputfield.go(+75 -9)📄 Description
When a form item is readonly, any input events or mouse events that
would cause its value to change are ignored.
Read only items are rendered when text color that matches the label
color to distinguish them from items that accept input.
This implements half of the feature request in #192
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.