From 5c8b7360fec008edffc0236eda0a03569154ee37 Mon Sep 17 00:00:00 2001 From: Domeshow Date: Tue, 28 Feb 2023 17:05:53 +0200 Subject: [PATCH] [ENH] Large tables: Fixed headers (freeze headers for pivot table rows & columns) --- dist/pivot.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dist/pivot.css b/dist/pivot.css index 4df17e82..2d50b0f1 100644 --- a/dist/pivot.css +++ b/dist/pivot.css @@ -112,3 +112,20 @@ table.pvtTable tbody tr td { .pvtCheckContainer p{ margin: 5px; } .pvtRendererArea { padding: 5px;} + +.pvtTable thead { + position: -webkit-sticky; /* for Safari */ + position: sticky; + top: 0; + z-index: 2; +} + +.pvtTable tbody th { + position: sticky; + position: -webkit-sticky; + width: 100px; + min-width: 100px; + max-width: 100px; + left: 0px; + z-index: 1; +}