Exemple #1
0
 public static T MergeAttributes <T>(this T obj, object htmlAttributes) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.MergeAttributes(obj.HtmlAttributes, htmlAttributes);
     return(obj);
 }
Exemple #2
0
 public static T Hide <T>(this T obj) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.MergeAttribute(obj.HtmlAttributes, "style", "display:none");
     return(obj);
 }
Exemple #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);
 }
Exemple #4
0
 public static T RemoveAllCssClass <T>(this T obj) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.RemoveAllCssClass(obj.HtmlAttributes);
     return(obj);
 }
Exemple #5
0
 public static T AddCssClass <T>(this T obj, string cssClass) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.AddCssClass(obj.HtmlAttributes, cssClass);
     return(obj);
 }
Exemple #6
0
 public static T SetRouteValues <T>(this T obj, object routeValues) where T : ICustomControlBaseProperty
 {
     obj.RouteValues = HtmlHelperExtension.ConvertRouteValuesToIDictionary(routeValues);
     return(obj);
 }
Exemple #7
0
 public static T SetAttributes <T>(this T obj, object htmlAttributes) where T : ICustomControlBaseProperty
 {
     obj.HtmlAttributes = HtmlHelperExtension.ConvertHtmlAttributesToIDictionary(htmlAttributes);
     return(obj);
 }