For what its worth, I have tried to come up with an approach to create a flexible grid using mostly yatl.
I would create 3 lists:
1. List of the grid headers
2. List of the items
3. list of the item db.ids (for the create, edit, view buttons etc.). Not implemented yet. The buttons just show as 1,2,3 etc.
In my sample these a are 3 separate custom defined lists, but in reality you would use pydal to get the items and their ids from the db query.
For search capabilities in the grid I would use list.js.
no.css is also used as CSS.
While I was at it, I was also playing around to see how yatl and pydal would play with flask as fun project, but anyway, the code
is extremely easy to port to py4web.
I am just sharing to see if you can use any of that logic for tne grid logic you are developing for lists and pandas etc.
You need to create a new venv and install flask, pydal, flask-wtf, flask-table and yatl.
Its all in the requirements.txt
And then fire it up.