Flask-AppBuilder
Flask-AppBuilder copied to clipboard
[Feature request] Menu item from a view in the running app indicates the selection
Hello. This is a feature request. Thank you for your time in reading this issue.
Environment
Flask-Appbuilder version: 4.1.3
Describe the expected results
Tell us what should happen.
This is a feature request. The idea is simply to have a template in which a menu item stays highlighted when it has been selected.
Describe the actual results
Tell us what happens instead.
As of now, the menu items are only highlighted when hovered over, but it does not persist once the item is selected and we are on that page.
Steps to reproduce
Create dash app with views/menus like
class ConfigDashboardAppCallBack(BaseView):
datamodel = SQLAInterface(DashboardConfiguration)
route_base = "/"
@has_access
@expose("/dashboard/")
def methoddash(self):
return self.render_template("dash.html",
dash_url=dashboard_app.url_base,
appbuilder=appbuilder)
appbuilder.add_view(ConfigDashboardAppCallBack,
"Dashboard",
icon="fa-list",
href="/dashboard/")
and run the app, hover over a menu item. It would be great if the highlight persisted when selected or some indication of which menu view we are in.
Again, thanks for reading. Great project. I use it quite a bit.