[GH-ISSUE #1112] feat: add (*Pages).Clear #806

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

Originally created by @ossenthusiast on GitHub (Aug 27, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1112

Problem: there is no way to remove all of the pages in a single call, you have to manually iterate through the entire pages slice and remove each page.
Solution: sets the pages slice in the Pages struct to nil.

Originally created by @ossenthusiast on GitHub (Aug 27, 2025). Original GitHub issue: https://github.com/rivo/tview/issues/1112 Problem: there is no way to remove all of the pages in a single call, you have to manually iterate through the entire pages slice and remove each page. Solution: sets the pages slice in the Pages struct to nil.
kerem closed this issue 2026-03-04 01:07:53 +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#806
No description provided.