clay icon indicating copy to clipboard operation
clay copied to clipboard

Table Header fixed

Open interaminense opened this issue 6 years ago • 8 comments

Hey guys,

In the Analytics Cloud project, we have a component that uses a table with the clay's markup, however we had to customize this table because we had a need to fix the header as shown the gif below:

table-header-fixed

Is it possible to create a markup in clay to fix the header?

cc: @fcodias, @oliveiraaraujo

interaminense avatar Oct 17 '18 17:10 interaminense

Hey @interaminense,

No there is currently no markup/component in Clay for a fixed table header. I know the Lexicon team wanted to implement tables with drag and drop, fixed column, and header but that is somewhere in the backlog.

We can probably add it as long as it's ok with the Lexicon team. In the mean time, if you have ideas on how to implement it feel free to send a pull or share any ideas you might have.

pat270 avatar Oct 17 '18 19:10 pat270

Hey @pat270, thanks for your answer.

I can send a PR with the adjustment I made to the Analytics table for you. I just need to organize this before.

interaminense avatar Oct 18 '18 13:10 interaminense

Recently I've been reviewing a sticky-table-column-issue and I think we should consider also this possibility

I created a first solution using the sticky CSS property but it's not 100% compatible with other browser

/cc @marcoscv-work @drakonux

edalgrin avatar Sep 30 '19 13:09 edalgrin

Yeah, I was going to say we should work both on header and first-column stickies since it's an already approved pattern. We have it implemented in liferay-portal already in the old searchContainer, so we need to make sure our new tables retain that behaviour.

jbalsas avatar Sep 30 '19 14:09 jbalsas

Well we don't have a definition for the new table in Clay. But at least we have the solution we gave in https://issues.liferay.com/browse/PTR-956 as the valid one.

drakonux avatar Sep 30 '19 14:09 drakonux

This looks like a valid feature, are we going to proceed with this? @jbalsas @drakonux

kresimir-coko avatar Sep 03 '20 08:09 kresimir-coko

Hey @kresimir-coko, friendly reminder that @drakonux is on paternity leave... ping @victorvalle instead

jbalsas avatar Sep 03 '20 09:09 jbalsas

Hi @kresimir-coko, This was included in the table specification a long time ago. Section 11 "Sticky header"

victorvalle avatar Sep 03 '20 09:09 victorvalle

Going to close this since we have the frontend data set.

pat270 avatar Jul 07 '23 21:07 pat270