Exemplo n.º 1
0
 public static T MergeAttributes <T>(this T obj, object htmlAttributes) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.MergeAttributes(obj.HtmlAttributes, htmlAttributes);
     return(obj);
 }
Exemplo n.º 2
0
 public static T Hide <T>(this T obj) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.MergeAttribute(obj.HtmlAttributes, "style", "display:none");
     return(obj);
 }
Exemplo n.º 3
0
 public static T MergeAttribute <T>(this T obj, string key, string value) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.MergeAttribute(obj.HtmlAttributes, key, value);
     return(obj);
 }
Exemplo n.º 4
0
 public static T RemoveAllCssClass <T>(this T obj) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.RemoveAllCssClass(obj.HtmlAttributes);
     return(obj);
 }
Exemplo n.º 5
0
 public static T AddCssClass <T>(this T obj, string cssClass) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.AddCssClass(obj.HtmlAttributes, cssClass);
     return(obj);
 }
Exemplo n.º 6
0
 public static T SetRouteValues <T>(this T obj, object routeValues) where T : ICustomControlBaseProperty
 {
     obj.RouteValues = HtmlHelperExtension.ConvertRouteValuesToIDictionary(routeValues);
     return(obj);
 }
Exemplo n.º 7
0
 public static T SetAttributes <T>(this T obj, object htmlAttributes) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.ConvertHtmlAttributesToIDictionary(htmlAttributes);
     return(obj);
 }