示例#1
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .If(() => ColumnSize.Class(ClassProvider), () => ColumnSize != null && UseColumnSizes);

            base.RegisterClasses();
        }
示例#2
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            if (ColumnSize != null && ColumnSizeSupported)
            {
                builder.Append(ColumnSize.Class(ClassProvider));
            }

            base.BuildClasses(builder);
        }
示例#3
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Fields())
            .If(() => ClassProvider.FieldsColumn(), () => ColumnSize != null)
            .If(() => ColumnSize.Class(ClassProvider), () => ColumnSize != null);

            base.RegisterClasses();
        }
示例#4
0
        /// <inheritdoc/>
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.DescriptionListDefinition());

            if (ColumnSize != null)
            {
                builder.Append(ColumnSize.Class(ClassProvider));
            }

            base.BuildClasses(builder);
        }
示例#5
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.Fields());

            if (ColumnSize != null)
            {
                builder.Append(ClassProvider.FieldsColumn());
                builder.Append(ColumnSize.Class(ClassProvider));
            }

            base.BuildClasses(builder);
        }