Method AddTab
AddTab(IMenuService, string, string, int, bool)
Adds a new menu tab to the menu service.
public static IMenuTabModel AddTab(this IMenuService menuService, string tabName, string caption, int sortOrder, bool isSelected = false)
Parameters
menuService
IMenuServiceThe menu service.
tabName
stringThe name of the tab.
caption
stringThe caption of the tab.
sortOrder
intThe sort order of the tab.
isSelected
boolIndicates whether the tab is selected.
Returns
- IMenuTabModel
The newly added menu tab.