Plugin: aj.plugins.core.api.sidebar

class aj.plugins.core.api.sidebar.Sidebar(context)[source]
build()[source]

Returns a complete tree of sidebar items.

Returns:dict
get(context)
class aj.plugins.core.api.sidebar.SidebarItemProvider(context)[source]

Interface for providing sidebar items.

provide()[source]

Should return a list of sidebar items, each in the following format:

{
    'id': 'optional-id',
    'attach': 'category:general', # id of the attachment point or None for top level
    'name': 'Dashboard',
    'icon': 'bar-chart',
    'url': '/view/dashboard',
    'children': [
        ...
    ]
}
Returns:list(dict)

Comments

comments powered by Disqus