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

Idea: Exported function to hide column name #24

Open
Zangomangu opened this issue Sep 8, 2021 · 10 comments
Open

Idea: Exported function to hide column name #24

Zangomangu opened this issue Sep 8, 2021 · 10 comments

Comments

@Zangomangu
Copy link

Would be nice if you could hide the column name, eg. if you put a gridlist inside a deckpane, the deck name works as a column name.

Like this, where "Column" can be toggled

image

@OvileAmriam
Copy link
Member

@Zangomangu What about multiple columns then?

@OvileAmriam
Copy link
Member

OvileAmriam commented Sep 8, 2021

Maybe add exported function to hide column completely for grid list? otherwise this could be issue for multiple columns probably, Actually this was the job of combo box which is pending yet tbh; assuming you are referring to that

@Aviril
Copy link
Member

Aviril commented Sep 8, 2021

image
I think Zango probably wants this in the form of comobox, which is basically deck + gridlist but with single column

@Zangomangu
Copy link
Author

@Zangomangu What about multiple columns then?

Yeah it should hide all the columns, basically the top row that has the column names.

Maybe add exported function to hide column completely for grid list? otherwise this could be issue for multiple columns probably, Actually this was the job of combo box which is pending yet tbh; assuming you are referring to that

Yeah. But to me a combobox is different, if you can hide the column names, a gridlist inside a deckpane is really neat for some stuff.

Is there any way currently to create a section row in a gridlist? It's basically just a row that has a different font to sort of separate the gridlist like a category

@OvileAmriam
Copy link
Member

@Zangomangu What about multiple columns then?

Yeah it should hide all the columns, basically the top row that has the column names.

Maybe add exported function to hide column completely for grid list? otherwise this could be issue for multiple columns probably, Actually this was the job of combo box which is pending yet tbh; assuming you are referring to that

Yeah. But to me a combobox is different, if you can hide the column names, a gridlist inside a deckpane is really neat for some stuff.

Is there any way currently to create a section row in a gridlist? It's basically just a row that has a different font to sort of separate the gridlist like a category

Can you show some visual reference about gridlist sections?

@Zangomangu
Copy link
Author

image

"Truckers" and "Fighters" are sections

@OvileAmriam
Copy link
Member

Ah thats easy to add, can you give a syntax for adding section? I think when adding rows it should be passing section id too that way or how does it works to know which row is under which?

@Zangomangu
Copy link
Author

Could add a parameter to addRow that determines if it's a section.

local row = beautify.gridlist.addRow(gridlist, true)

A section row shouldnt be selectable

@OvileAmriam
Copy link
Member

OvileAmriam commented Sep 11, 2021

Yeah tho i meant like if you want to add a non section row in 2nd or 3rd section how would you determine that?

@Zangomangu
Copy link
Author

Well you would have to add the rows in the right order. I see what you mean though.
If you add ordering to columns, then it will mess up the sections, unless rows belong under a section.

If rows belong under a section then you could have
local rowSectionID = beautify.gridlist.addRowSection(gridlist)
and
local rowID = beautify.gridlist.addRow(gridlist, rowSectionID)

Then if column ordering is implemented, it can first sort the sections alphabetically, then the rows under the sections alphabetically.

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

No branches or pull requests

3 participants