protected override void RegisterClasses() { ClassMapper .If(() => ColumnSize.Class(ClassProvider), () => ColumnSize != null); base.RegisterClasses(); }
private void BuildContainerClasses(ClassBuilder builder) { builder.Append("ant-col"); builder.Append("ant-form-item-label"); if (ColumnSize != null) { builder.Append(ColumnSize.Class(ClassProvider)); } }
protected override void BuildClasses(ClassBuilder builder) { if (!IsFields && ColumnSize != null) { builder.Append(ClassProvider.FieldColumn()); builder.Append(ColumnSize.Class(ClassProvider)); } base.BuildClasses(builder); }
///// <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); }