Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListBox/ListView widget #1260

Closed
Nv7-GitHub opened this issue Aug 23, 2020 · 3 comments
Closed

ListBox/ListView widget #1260

Nv7-GitHub opened this issue Aug 23, 2020 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@Nv7-GitHub
Copy link

Is it possible to construct a solution with the existing API?

I do not think so, without extending widgets. I am trying to do it with a vbox full of buttons within a scroll container and then a label saying what is selected when a button is selected, but with a large list this becomes very slow, especially when resizing the window, and it is also not very user-friendly to have a label saying what is selected, instead of just making an item blue (or something like that).

Describe the solution you'd like to see:

Imagine a vertical tabbed item view with text on the right of the icon taking up the whole screen. I want a list of items, hopefully with an Icon, In which you can select a single item with clicking and select multiple with shift-clicking. The multiple selection should be a different widget or there should be a method to disable it in a single one. You should be able to get an array of selected indexes from code by calling (for example)

listItemView.GetSelected()
// [0, 2, 5]

A widget like this exists in Android (recycler view/list view) and tkinter (list box).
Here is an image of it in tkinter:
tkinter listbox

@andydotxyz
Copy link
Member

This was already requested in #156 and is being implemented in #1253

@andydotxyz andydotxyz added the duplicate This issue or pull request already exists label Aug 24, 2020
@Nv7-GitHub
Copy link
Author

Nv7-GitHub commented Aug 24, 2020

Oh wait, never mind. I thought that this widget was already available in fyne. Do you know when fyne 1.4 is coming?

@andydotxyz
Copy link
Member

We will, once it is released :) We don't have a release date for 1.4 yet - I would guess its a month or two away - most major items are well under way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants