Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

category icon #1695

Open
lnlrbr opened this issue Aug 31, 2018 · 2 comments
Open

category icon #1695

lnlrbr opened this issue Aug 31, 2018 · 2 comments

Comments

@lnlrbr
Copy link

lnlrbr commented Aug 31, 2018

I can't find how to add an icon alongside a menu category.

Try with

category_icon_classes = dict(config='fa fa-screwdriver')
admin = Admin(..., category_icon_classes=category_icon_classes)
admin.add_view(DefaultView(models.Item, session, category='config', name='Items'))

and

admin = Admin(...)
menucat = MenuCategory(name='config', icon_type='fa', icon_value='fa-screwdriver')
admin._menu_categories['config'] = menucat
admin._menu.append(menucat)
admin.add_view(DefaultView(models.Item, session, category='config', name='Items'))

The item view is in the category menu, but no icon on the category menu

@liuliqiang
Copy link

In Flask-Admin==1.5.7, this problem still exists.

@vpuhoff
Copy link

vpuhoff commented Jun 29, 2021

still not workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants