コード例 #1
0
        public static void AddConventions(this HtmlTagsConfiguration configuration, Action <HtmlConventionRegistry> conventionRegsitryConfigurator)
        {
            var conventionRegistry = new HtmlConventionRegistry();

            conventionRegsitryConfigurator(conventionRegistry);
            configuration.AddConventions(conventionRegistry);
        }
コード例 #2
0
 public static void UseFoundationConventions(this HtmlTagsConfiguration configuration, Action <FoundationHtmlConventions> conventionConfiguration = null)
 {
     configuration.AddConventions(new FoundationHtmlConventions(conventionConfiguration));
     configuration.DefaultFormBlockBuilderFactory = () => new FoundationFormBlockBuilder();
 }
コード例 #3
0
 public static void UseDefaultHtmlConventions(this HtmlTagsConfiguration configuration, Action <AspNetMvcHtmlConventions> conventionConfiguration = null)
 {
     configuration.AddConventions(new AspNetMvcHtmlConventions(conventionConfiguration));
 }
コード例 #4
0
 public static void UseBootstrapConventions(this HtmlTagsConfiguration configuration, Action <BootstrapHtmlConventions> conventionConfiguration = null)
 {
     configuration.AddConventions(new BootstrapHtmlConventions(conventionConfiguration));
     configuration.DefaultFormBlockBuilderFactory = () => new BootstrapFormBlockBuilder();
 }