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