コード例 #1
0
 public static MvcHtmlString GovUkLegend <TModel>(
     this HtmlHelper <TModel> htmlHelper,
     string legendText,
     string hintText = null)
 {
     return(LegendHtml.GenerateLegend(htmlHelper, legendText, hintText));
 }
 public static MvcHtmlString GovUkLegendFor <TModel, TProperty>(
     this HtmlHelper <TModel> htmlHelper,
     Expression <Func <TModel, TProperty> > expression,
     bool hasValidation = false)
 {
     return(LegendHtml.GenerateLegendFor(htmlHelper, expression, hasValidation));
 }
コード例 #3
0
 public static MvcHtmlString GovUkHiddenLegend <TModel>(
     this HtmlHelper <TModel> htmlHelper,
     string legendText)
 {
     return(LegendHtml.GenerateHiddenLegend(htmlHelper, legendText));
 }