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