Beautify.library icon indicating copy to clipboard operation
Beautify.library copied to clipboard

Idea: Exported function to hide column name

Open Zangomangu opened this issue 4 years ago • 10 comments

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

Zangomangu avatar Sep 08 '21 20:09 Zangomangu

@Zangomangu What about multiple columns then?

ov-tron avatar Sep 08 '21 21:09 ov-tron

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

ov-tron avatar Sep 08 '21 21:09 ov-tron

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

ov-aviril avatar Sep 08 '21 21:09 ov-aviril

@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

Zangomangu avatar Sep 09 '21 19:09 Zangomangu

@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?

ov-tron avatar Sep 09 '21 22:09 ov-tron

image

"Truckers" and "Fighters" are sections

Zangomangu avatar Sep 11 '21 07:09 Zangomangu

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?

ov-tron avatar Sep 11 '21 07:09 ov-tron

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

Zangomangu avatar Sep 11 '21 08:09 Zangomangu

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

ov-tron avatar Sep 11 '21 09:09 ov-tron

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.

Zangomangu avatar Sep 11 '21 10:09 Zangomangu