Skip to main content

Navbar Templates

You can completely replace the look and feel of NavBar view elements using templates. The extension allows you to create templates for four element types: the item text, the entire item content, the group header, and the group content. Templates can be defined at different object levels at the same time (for instance, at the extension level and at the group level). In this case, templates created at a lower level in the logical tree take precedence over other templates for the same element (that is, a template defined at the group level has precedence over the same element template created at the extension level).

NavBar_Templates

The table below lists the members used to create templates.

Item level templates

Group level templates

Extension level templates

Item text template

MVCxNavBarItem.SetTextTemplateContent

MVCxNavBarGroup.SetItemTextTemplateContent

NavBarSettings.SetItemTextTemplateContent

Item template

MVCxNavBarItem.SetTemplateContent

MVCxNavBarGroup.SetItemTemplateContent

NavBarSettings.SetItemTemplateContent

Group header template

-

MVCxNavBarGroup.SetHeaderTemplateContent,

MVCxNavBarGroup.SetHeaderTemplateCollapsedContent

NavBarSettings.SetGroupHeaderTemplateContent,

NavBarSettings.SetGroupHeaderTemplateCollapsedContent

Group content template

-

MVCxNavBarGroup.SetContentTemplateContent

NavBarSettings.SetGroupContentTemplateContent

See Also