コード例 #1
0
 private static IHtmlContent BooleanTemplateDropDownList(IHtmlHelper htmlHelper, bool?value)
 {
     return(htmlHelper.DropDownList(
                expression: null,
                selectList: DefaultDisplayTemplates.TriStateValues(value),
                optionLabel: null,
                htmlAttributes: CreateHtmlAttributes(htmlHelper, "list-box tri-state")));
 }
コード例 #2
0
 private static string BooleanTemplateDropDownList(IHtmlHelper html, bool?value)
 {
     return(html.DropDownList(
                string.Empty,
                DefaultDisplayTemplates.TriStateValues(value),
                CreateHtmlAttributes(html, "list-box tri-state"))
            .ToString());
 }
コード例 #3
0
 private static string BooleanTemplateDropDownList(IHtmlHelper html, bool?value)
 {
     return(html.DropDownList(
                name: null,
                selectList: DefaultDisplayTemplates.TriStateValues(value),
                optionLabel: null,
                htmlAttributes: CreateHtmlAttributes(html, "list-box tri-state"))
            .ToString());
 }