Ejemplo n.º 1
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .If(() => ColumnSize.Class(ClassProvider), () => ColumnSize != null);

            base.RegisterClasses();
        }
Ejemplo n.º 2
0
        private void BuildContainerClasses(ClassBuilder builder)
        {
            builder.Append("ant-col");
            builder.Append("ant-form-item-label");

            if (ColumnSize != null)
            {
                builder.Append(ColumnSize.Class(ClassProvider));
            }
        }
Ejemplo n.º 3
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            if (!IsFields && ColumnSize != null)
            {
                builder.Append(ClassProvider.FieldColumn());
                builder.Append(ColumnSize.Class(ClassProvider));
            }

            base.BuildClasses(builder);
        }
Ejemplo n.º 4
0
        ///// <summary>
        ///// Bootstrap 5 doesn't have "form-group" any more so all fields are without marging by default.
        ///// With this I am defining the default marging if it is undefined. This is per bootstrap 5 documentation.
        ///// </summary>
        //private static readonly IFluentSpacing DefaultMargin = Blazorise.Margin.Is3.FromBottom;

        #endregion

        #region Methods

        protected override void BuildClasses(ClassBuilder builder)
        {
            //if ( Margin == null )
            //{
            //    builder.Append( DefaultMargin.Class( ClassProvider ) );
            //}

            if (IsFields && ColumnSize == null)
            {
                builder.Append(ClassProvider.FieldColumn());
            }

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

            base.BuildClasses(builder);
        }