[PR #392] [MERGED] Add Flex.Clear() method to remove all items in flexbox #936

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

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/392
Author: @blefevre
Created: 1/21/2020
Status: Merged
Merged: 1/27/2020
Merged by: @rivo

Base: masterHead: master


📝 Commits (2)

  • 37b143d Add Flex.Clear() method to remove all items
  • 016b6bd Update Flex.Clear() documentation

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 flex.go (+6 -0)

📄 Description

Other components that contain a list of items have a Clear() method to remove them all.
E.g:

This PR adds the same Clear() method to the Flex component.


🔄 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/392 **Author:** [@blefevre](https://github.com/blefevre) **Created:** 1/21/2020 **Status:** ✅ Merged **Merged:** 1/27/2020 **Merged by:** [@rivo](https://github.com/rivo) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`37b143d`](https://github.com/rivo/tview/commit/37b143d5fa3d5a46dfbc0bab53a14eb6324aa096) Add Flex.Clear() method to remove all items - [`016b6bd`](https://github.com/rivo/tview/commit/016b6bd9e3f85dfd3d3ebdb6a4635e0917cfb2b1) Update Flex.Clear() documentation ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `flex.go` (+6 -0) </details> ### 📄 Description Other components that contain a list of items have a `Clear()` method to remove them all. E.g: * [Grid.Clear()](https://godoc.org/github.com/rivo/tview#Grid.Clear) * [List.Clear()](https://godoc.org/github.com/rivo/tview#List.Clear) * [Table.Clear()](https://godoc.org/github.com/rivo/tview#Table.Clear) This PR adds the same `Clear()` method to the Flex component. --- <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:38 +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#936
No description provided.