protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.TextColor(Color), Color != TextColor.None);
            builder.Append(ClassProvider.TextAlignment(Alignment), Alignment != TextAlignment.None);
            builder.Append(ClassProvider.TextTransform(Transform), Transform != TextTransform.None);
            builder.Append(ClassProvider.TextWeight(Weight), Weight != TextWeight.None);
            builder.Append(ClassProvider.TextItalic(), IsItalic);

            base.BuildClasses(builder);
        }
示例#2
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Pagination())
            .If(() => ClassProvider.PaginationSize(Size), () => Size != Size.None)
            .If(() => ClassProvider.FlexAlignment(Alignment), () => Alignment != Alignment.None)
            .If(() => ClassProvider.BackgroundColor(Background), () => Background != Background.None);

            base.RegisterClasses();
        }
示例#3
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.BarItem());
            builder.Append(ClassProvider.BarItemActive(), IsActive);
            builder.Append(ClassProvider.BarItemDisabled(), IsDisabled);
            builder.Append(ClassProvider.BarItemHasDropdown(), IsDropdown);
            builder.Append(ClassProvider.BarItemHasDropdownShow(), IsDropdown && barDropdown?.IsOpen == true);

            base.BuildClasses(builder);
        }
示例#4
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.ControlCheck(), Role == ControlRole.Check);
            builder.Append(ClassProvider.ControlRadio(), Role == ControlRole.Radio);
            builder.Append(ClassProvider.ControlFile(), Role == ControlRole.File);
            builder.Append(ClassProvider.ControlText(), Role == ControlRole.Text);
            builder.Append(ClassProvider.CheckEditInline(), IsInline);

            base.BuildClasses(builder);
        }
示例#5
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.Tabs(Pills));
            builder.Append(ClassProvider.TabsCards(), IsCards);
            builder.Append(ClassProvider.TabsFullWidth(), FullWidth);
            builder.Append(ClassProvider.TabsJustified(), Justified);
            builder.Append(ClassProvider.TabsVertical(), TabPosition == TabPosition.Left || TabPosition == TabPosition.Right);

            base.BuildClasses(builder);
        }