コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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);
 }
コード例 #7
0
 /// <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);
 }