/// <summary> /// Content box /// </summary> /// <param name="htmlHelper">Html helper</param> /// <param name="title">Title</param> /// <param name="required">Required</param> /// <param name="htmlAttributes">Html Attributes</param> /// <returns>MvcContentBox</returns> public static MvcContentBox ContentBox(this HtmlHelper htmlHelper, string title, bool required, object htmlAttributes) { return htmlHelper.ContentBoxHelper(new ContentBoxHeader { Title = title, Required = required }, htmlAttributes); }
/// <summary> /// Content box /// </summary> /// <param name="htmlHelper">Html helper</param> /// <param name="title">Title</param> /// <param name="buttons">Buttons</param> /// <returns>MvcContentBox</returns> public static MvcContentBox ContentBox(this HtmlHelper htmlHelper, string title, params ContentBoxHeaderButton[] buttons) { return htmlHelper.ContentBoxHelper(new ContentBoxHeader { Title = title, Buttons = buttons.ToList()}, null); }
/// <summary> /// Content box /// </summary> /// <param name="htmlHelper">Html helper</param> /// <param name="title">Title</param> /// <param name="required">Required</param> /// <returns>MvcContentBox</returns> public static MvcContentBox ContentBox(this HtmlHelper htmlHelper, string title, bool required) { return htmlHelper.ContentBoxHelper(new ContentBoxHeader { Title = title, Required = required }, null); }
/// <summary> /// Content box /// </summary> /// <param name="htmlHelper">Html helper</param> /// <param name="title">Title</param> /// <returns>MvcContentBox</returns> public static MvcContentBox ContentBox(this HtmlHelper htmlHelper, string title) { return htmlHelper.ContentBoxHelper(new ContentBoxHeader { Title = title }, null); }
/// <summary> /// /// </summary> /// <param name="htmlHelper"></param> /// <param name="title"></param> /// <param name="loading"></param> /// <param name="htmlAttributes"></param> /// <returns></returns> public static MvcContentBox ContentBox(this HtmlHelper htmlHelper, string title, ContentBoxHeaderLoading loading, object htmlAttributes) { return htmlHelper.ContentBoxHelper(new ContentBoxHeader { Title = title, Loading = loading }, htmlAttributes); }
/// <summary> /// Content box /// </summary> /// <param name="htmlHelper">Html Helper</param> /// <param name="title">Title</param> /// <param name="loading">Loading</param> /// <returns><see cref="MvcContentBox"/></returns> public static MvcContentBox ContentBox(this HtmlHelper htmlHelper, string title, ContentBoxHeaderLoading loading) { return htmlHelper.ContentBoxHelper(new ContentBoxHeader { Title = title, Loading = loading}, null); }
/// <summary> /// Content box /// </summary> /// <param name="htmlHelper">Html helper</param> /// <param name="title">Title</param> /// <param name="required">Required</param> /// <param name="htmlAttributes">Html attributes</param> /// <param name="tabs">Tabs</param> /// <returns>MvcContentBox</returns> public static MvcContentBox ContentBox(this HtmlHelper htmlHelper, string title, bool required, object htmlAttributes, params ContentBoxHeaderTab[] tabs) { return htmlHelper.ContentBoxHelper(new ContentBoxHeader { Title = title, Required = required, Tabs = tabs.ToList() }, htmlAttributes); }