'Add your views associated with menus using this method.
:param baseview:
A BaseView type class instantiated or not.
This method will instantiate the class for you if needed.
:param name:
The string name that identifies the menu.
:param href:
Override the generated href for the menu.
You can use an url string or an endpoint name
if non provided default_view from view will be set as href.
:param icon:
Font-Awesome icon name, optional.
:param label:
The label that will be displayed on the menu,
if absent param name will be used
:param category:
The menu category where the menu will be included,
if non provided the view will be acessible as a top menu.
:param category_icon:
Font-Awesome icon name for the category, optional.
:param category_label:
The label that will be displayed on the menu,
if absent param name will be used
Examples::
appbuilder = AppBuilder(app, db)
# Register a view, rendering a top menu without icon.
appbuilder.add_view(MyModelView(), "My View")
# or not instantiated
appbuilder.add_view(MyModelView, "My View")
# Register a view, a submenu "Other View" from "Other" with a phone icon.
appbuilder.add_view(MyOtherModelView, "Other View", icon=\'fa-phone\', category="Others")
# Register a view, with category icon and translation.
appbuilder.add_view(YetOtherModelView(), "Other View", icon=\'fa-phone\',
label=_(\'Other View\'), category="Others", category_icon=\'fa-envelop\',
category_label=_(\'Other View\'))
# Add a link
appbuilder.add_link("google", href="www.google.com", icon = "fa-google-plus")'

def add_view(self, baseview, name, href='', icon='', label='', category='', category_icon='', category_label=''):

    baseview = self._check_and_init(baseview)
    log.info(LOGMSG_INF_FAB_ADD_VIEW.format(baseview.__class__.__name__, name))
    if (not self._view_exists(baseview)):
        baseview.appbuilder = self
        self.baseviews.append(baseview)
        self._process_inner_views()
        if self.app:
            self.register_blueprint(baseview)
            self._add_permission(baseview)
    self.add_link(name=name, href=href, icon=icon, label=label, category=category, category_icon=category_icon, category_label=category_label, baseview=baseview)
    return baseview
