Add basic "Buefy" support for grids (master index view)

still pretty experimental at this point, but making progress
This commit is contained in:
Lance Edgar 2019-03-24 17:24:43 -05:00
parent 3cef591719
commit 8d6ecc3ec7
9 changed files with 296 additions and 15 deletions

View file

@ -17,7 +17,9 @@
<script type="text/javascript">
$(function() {
% if not use_buefy:
$('.grid-wrapper').gridwrapper();
% endif
% if master.mergeable and request.has_perm('{}.merge'.format(permission_prefix)):
@ -170,4 +172,12 @@
</%def>
${grid.render_complete(tools=capture(self.grid_tools).strip(), context_menu=capture(self.context_menu_items).strip())|n}
% if use_buefy:
${grid.render_buefy(grid_columns=grid_columns, grid_data=grid_data, static_data=static_data)|n}
% else:
## no buefy, so do the traditional thing
${grid.render_complete(tools=capture(self.grid_tools).strip(), context_menu=capture(self.context_menu_items).strip())|n}
% endif