mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #214] [CLOSED] change: adding function (*List).InsertItem() to allow inserting items at arbitrary positions in the list #879
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#879
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/214
Author: @ardnew
Created: 1/3/2019
Status: ❌ Closed
Base:
master← Head:list-insertitem📝 Commits (9)
334dfbeAdding accept() callback support for all relevant input changes in an InputField739b305Merge https://github.com/rivo/tviewa207e47change: provide drop-down option text and index as args to selection callback when using (*DropDown).AddOption()4dafc38change: provide drop-down option text and index as args to selection callback when using (*DropDown).AddOption()bb67120change: adding function (*List).InsertItem() to allow inserting items at arbitrary positions in the list75c14a5Merge remote-tracking branch 'upstream/master'80eeae3Merge branch 'dropdown-addoption' of https://github.com/ardnew/tviewfafd074change: implemented view tracking in List for more natural navigatione29989fMerge branch 'master' into list-insertitem📊 Changes
3 files changed (+108 additions, -35 deletions)
View changed files
📝
dropdown.go(+17 -13)📝
inputfield.go(+4 -2)📝
list.go(+87 -20)📄 Description
#213
Initial implementation based on existing behavior of
List.AddItem. Please consider my comments on the behavior whenindex < 0. Seemed a bit out of scope for this commit.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.