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