panel icon indicating copy to clipboard operation
panel copied to clipboard

Tabulator Frozen Column Positions

Open CTPassion opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe.

I want to freeze two columns in my pn.Widgets.Tabulator but when I do so they are moved to be the first columns of the table.

Describe the solution you'd like

I want their position to be customizable or at least remain where they were. They were originally the columns the furthest right representing a TOTAL and EXPECTED value. I would like to freeze them on the right and be able to scroll across the other columns before them.

Describe alternatives you've considered

Having them unfrozen and scrolling to the end of the table If anyone can think of a workaround for now, I am happy to use that.

Additional context

Add any other context or screenshots about the feature request here. Frozen: image

Unfrozen: image

CTPassion avatar Nov 21 '23 11:11 CTPassion

Hi @CTPassion, it looks like Tabulator allows to freeze the right most columns (see https://tabulator.info/docs/5.5/layout#frozen-column) so that's a feature that could be implemented in Panel. Do you want to give it a try?

maximlt avatar Nov 21 '23 14:11 maximlt

@maximlt If I get time I will give it a try :)

CTPassion avatar Nov 21 '23 14:11 CTPassion

Ran into this too! @CTPassion did you have any luck? Can give it a try otherwise! :)

suryako avatar Feb 05 '24 02:02 suryako

Ran into this too! @CTPassion did you have any luck? Can give it a try otherwise! :)

Yes I did do it and was easy to implement, I just need to get it in a PR. Will attempt tonight :)

CTPassion avatar Feb 05 '24 10:02 CTPassion

Hi @CTPassion, it looks like Tabulator allows to freeze the right most columns (see https://tabulator.info/docs/5.5/layout#frozen-column) so that's a feature that could be implemented in Panel. Do you want to give it a try?

I have opened a PR #6309

CTPassion avatar Feb 06 '24 09:02 CTPassion