[PR #449] [CLOSED] Add support for read only form items #957

Closed
opened 2026-03-04 01:08:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/449
Author: @berrange
Created: 5/27/2020
Status: Closed

Base: masterHead: form-readonly


📝 Commits (1)

  • 78031b2 Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/rivo/tview/pull/449 **Author:** [@berrange](https://github.com/berrange) **Created:** 5/27/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `form-readonly` --- ### 📝 Commits (1) - [`78031b2`](https://github.com/rivo/tview/commit/78031b278f3303f1ef0343adf974e11184f193bc) Add support for read only form items ### 📊 Changes **3 files changed** (+173 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `checkbox.go` (+48 -8) 📝 `dropdown.go` (+50 -13) 📝 `inputfield.go` (+75 -9) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:08:45 +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/tview#957
No description provided.