From a553a266440edfc7f375e4a8b3438316b69d2f45 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 22 Oct 2021 21:04:39 -0500 Subject: [PATCH] Optionally set the `sticky-header` attribute for main buefy grids should affect the 'index' and 'view' (with rows) but i don't think any other pages will get this..? --- tailbone/templates/grids/buefy.mako | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tailbone/templates/grids/buefy.mako b/tailbone/templates/grids/buefy.mako index 63deddc9..08cb2969 100644 --- a/tailbone/templates/grids/buefy.mako +++ b/tailbone/templates/grids/buefy.mako @@ -140,6 +140,14 @@ :loading="loading" :row-class="getRowClass" + ## TODO: this should be more configurable, maybe auto-detect based + ## on buefy version?? probably cannot do that, but this feature + ## is only supported with buefy 0.8.13 and newer + % if request.rattail_config.getbool('tailbone', 'sticky_headers'): + sticky-header + height="600px" + % endif + :checkable="checkable" % if grid.checkboxes: :checked-rows.sync="checkedRows"