コード例 #1
0
        public static HtmlConventionRegistry DefaultNamingConvention(this HtmlConventionRegistry registry)
        {
            registry.Editors.NamingConvention(new DotNotationElementNamingConvention());
            registry.Labels.NamingConvention(new DotNotationElementNamingConvention());

            return(registry);
        }
コード例 #2
0
        public static HtmlConventionRegistry DefaultModifiers(this HtmlConventionRegistry registry)
        {
            registry.Editors.Modifier <AddNameModifier>();

            registry.Editors.Modifier <AddIdModifier>();

            return(registry);
        }
コード例 #3
0
        public static HtmlConventionRegistry DefaultBuilders(this HtmlConventionRegistry registry)
        {
            registry.Editors.BuilderPolicy <CheckboxBuilder>();

            registry.Editors.Always.BuildBy <TextboxBuilder>();

            registry.Displays.Always.BuildBy <SpanDisplayBuilder>();

            registry.Labels.Always.BuildBy <DefaultLabelBuilder>();

            return(registry);
        }
コード例 #4
0
        public static void Defaults(this HtmlConventionRegistry registry)
        {
            registry.Editors.BuilderPolicy <CheckboxBuilder>();

            registry.Editors.Always.BuildBy <TextboxBuilder>();

            registry.Editors.Modifier <AddNameModifier>();

            registry.Displays.Always.BuildBy <SpanDisplayBuilder>();

            registry.Labels.Always.BuildBy <DefaultLabelBuilder>();
        }
コード例 #5
0
        public static HtmlConventionRegistry Defaults(this HtmlConventionRegistry registry)
        {
            registry.Editors.BuilderPolicy <CheckboxBuilder>();

            registry.Editors.Always.BuildBy <TextboxBuilder>();

            registry.Editors.Modifier <AddNameModifier>();

            registry.Editors.Modifier <AddIdModifier>();

            registry.Editors.NamingConvention(new DotNotationElementNamingConvention());

            registry.Displays.Always.BuildBy <SpanDisplayBuilder>();

            registry.Labels.Always.BuildBy <DefaultLabelBuilder>();

            return(registry);
        }
コード例 #6
0
 public static HtmlConventionRegistry Defaults(this HtmlConventionRegistry registry) =>
 registry
 .DefaultBuilders()
 .DefaultModifiers()
 .DefaultNamingConvention();