Commit 1422b7df authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #786 from pawl/patch-4

Add documentation for using menu icons
parents 0048cc6b b24148d7
...@@ -116,6 +116,10 @@ class BaseView(with_metaclass(AdminViewMeta, BaseViewClass)): ...@@ -116,6 +116,10 @@ class BaseView(with_metaclass(AdminViewMeta, BaseViewClass)):
@expose('/') @expose('/')
def index(self): def index(self):
return 'Hello World!' return 'Hello World!'
Icons can be added to the menu by using `menu_icon_type` and `menu_icon_value`. For example::
admin.add_view(MyView(name='My View', menu_icon_type='glyph', menu_icon_value='glyphicon-home'))
""" """
@property @property
def _template_args(self): def _template_args(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment