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