public static ComponentBuilder <MvcBootstrapConfig <TModel>, Tab> Tab <TComponent, TModel>( this BootstrapHelper <MvcBootstrapConfig <TModel>, TComponent> helper, string text, string actionName, string controllerName, object routeValues = null) where TComponent : Component, ICanCreate <Tab> { return(new ComponentBuilder <MvcBootstrapConfig <TModel>, Tab>(helper.GetConfig(), helper.Tab(text, null).GetComponent()) .SetAction(actionName, controllerName, routeValues)); }
public static ComponentBuilder <MvcBootstrapConfig <TModel>, Tab> Tab <TComponent, TModel>( this BootstrapHelper <MvcBootstrapConfig <TModel>, TComponent> helper, string text, ActionResult result) where TComponent : Component, ICanCreate <Tab> { return(new ComponentBuilder <MvcBootstrapConfig <TModel>, Tab>(helper.GetConfig(), helper.Tab(text, (string)null).GetComponent()) .SetLinkAction(result)); }