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

Add support for columns and column titles to ItemList #7707

Open
ShlomiRex opened this issue Sep 17, 2023 · 2 comments
Open

Add support for columns and column titles to ItemList #7707

ShlomiRex opened this issue Sep 17, 2023 · 2 comments

Comments

@ShlomiRex
Copy link

Describe the project you are working on

I am working on improving the file dialog (when selecting files, opening, and more).

In the list view of the directories and files, you currently see only the names of the directories and files.

I'm working on GUI change so the ItemList will also have columns & titles. The file dialog will have 3 columns:

Name (of dir/file), Size (in bytes / kb / mb / gb), Last modified

In addition user will be able to click on the columns to sort by that category.

Describe the problem or limitation you are having in your project

There is no functionality in ItemList (a GUI component) to set column titles.

I want to create an ItemList with 3 columns and have their titles visible.

Tree GUI componenet however, does have this functionality.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

There is some column code (properties) inside ItemList but no implementation of rendering columns.

There is only column count, max column count and thats it.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Using the ItemList column functions, I would be able to implement better file dialog.

If this enhancement will not be used often, can it be worked around with a few lines of script?

It will be used often, each time a user selects a file/directory from file dialog.

Is there a reason why this should be core and not an add-on in the asset library?

As mention above this is code functionality of ItemList

@Calinou Calinou changed the title [ItemList] Add support for columns & columns titles Add support for columns and column titles to ItemList Sep 17, 2023
@bluenote10
Copy link

Considering that ItemList already suffers a bit from feature creep, it may be worth considering such functionality in a dedicated component. Supporting columns properly essentially means turning the ItemList into a table, which could require many more features than a plain item list (sorting, filtering, column ordering, column enabling/disabling, pagination, horizontal scrolling, ...).

So possibly related to #1107 #97 #13

@dalexeev
Copy link
Member

You can use Tree instead of ItemList.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants