flask_admin.theme¶
BootstrapTheme¶
- class BootstrapTheme(folder: Literal['bootstrap4'], base_template: str = 'admin/base.html', swatch: str = 'default', fluid: bool = False)[source]¶
Bootstrap theme for Flask-Admin.
Usage:
t = Bootstrap4Theme( base_template='my_base.html', # relative your templates folder swatch='cerulean', fluid=True ) admin = Admin(app, name='microblog', theme=t)