pythonpython-3.xflaskflask-admin

(Python3) FLASK ADMIN: It is possible to full utilise the table to view data


enter image description hereI have recently start working on flask. Flask admin is similar version of django admin as they say.

My question is can we stretch out table width to remove horizontal scrolling. Also it could help to see data in first glance.

Please ignore poor editing. Is it possible to use red area shown in image for table view.

Thanks.


Solution

  • Got it. There's FLASK_ADMIN_FLUID_LAYOUT config which need to set True. And it enables full fluid layout

    app.name = 'App Name'
    app.config['FLASK_ADMIN_FLUID_LAYOUT'] = True
    

    Use above lines to set or unset FLUID_LAYOUT