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..?
This commit is contained in:
Lance Edgar 2021-10-22 21:04:39 -05:00
parent 4a383709bd
commit a553a26644

View file

@ -140,6 +140,14 @@
:loading="loading" :loading="loading"
:row-class="getRowClass" :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" :checkable="checkable"
% if grid.checkboxes: % if grid.checkboxes:
:checked-rows.sync="checkedRows" :checked-rows.sync="checkedRows"