Exemple #1
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Field())
            .If(() => ClassProvider.FieldHorizontal(), () => IsHorizontal)
            .If(() => ClassProvider.JustifyContent(JustifyContent), () => JustifyContent != JustifyContent.None);

            base.RegisterClasses();
        }
Exemple #2
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.ListGroupItem())
            .If(() => ClassProvider.ListGroupItemActive(), () => IsActive)
            .If(() => ClassProvider.ListGroupItemDisabled(), () => IsDisabled);

            base.RegisterClasses();
        }
Exemple #3
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.DateEdit())
            .If(() => ClassProvider.DateEditSize(Size), () => Size != Size.None)
            .If(() => ClassProvider.DateEditValidation(ParentValidation?.Status ?? ValidationStatus.None), () => ParentValidation?.Status != ValidationStatus.None);

            base.RegisterClasses();
        }
Exemple #4
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.NavItem())
            .Add(() => ClassProvider.NavLink())
            .If(() => ClassProvider.Active(), () => IsActive);

            base.RegisterClasses();
        }
Exemple #5
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.TextEdit(IsPlaintext))
            .If(() => ClassProvider.TextEditColor(Color), () => Color != Color.None)
            .If(() => ClassProvider.TextEditSize(Size), () => Size != Size.None)
            .If(() => ClassProvider.TextEditValidation(ParentValidation?.Status ?? ValidationStatus.None), () => ParentValidation?.Status != ValidationStatus.None);

            base.RegisterClasses();
        }
Exemple #6
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();
        }
Exemple #7
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.TableRowCell())
            .If(() => ClassProvider.TableRowCellColor(Color), () => Color != Color.None)
            .If(() => ClassProvider.TableRowCellBackground(Background), () => Background != Background.None)
            .If(() => ClassProvider.TableRowCellTextColor(TextColor), () => TextColor != TextColor.None);

            base.RegisterClasses();
        }
Exemple #8
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Bar())
            .If(() => ClassProvider.BackgroundColor(Background), () => Background != Background.None)
            .If(() => ClassProvider.BarThemeContrast(ThemeContrast), () => ThemeContrast != ThemeContrast.None)
            .If(() => ClassProvider.BarBreakpoint(Breakpoint), () => Breakpoint != Breakpoint.None)
            .If(() => ClassProvider.FlexAlignment(Alignment), () => Alignment != Alignment.None);

            base.RegisterClasses();
        }
Exemple #9
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.BarItem())
            .If(() => ClassProvider.BarItemActive(), () => IsActive)
            .If(() => ClassProvider.BarItemDisabled(), () => IsDisabled)
            .If(() => ClassProvider.BarItemHasDropdown(), () => IsDropdown)
            .If(() => ClassProvider.BarItemHasDropdownShow(), () => IsDropdown && barDropdown?.IsOpen == true);

            base.RegisterClasses();
        }
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.ProgressBar())
            .Add(() => ClassProvider.ProgressBarWidth(Value ?? 0))
            .If(() => ClassProvider.ProgressBarColor(Background), () => Background != Background.None)
            .If(() => ClassProvider.ProgressBarStriped(), () => IsStriped)
            .If(() => ClassProvider.ProgressBarAnimated(), () => IsAnimated);

            base.RegisterClasses();
        }
Exemple #11
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Alert())
            .If(() => ClassProvider.AlertColor(Color), () => Color != Color.None)
            .If(() => ClassProvider.AlertDismisable(), () => IsDismisable)
            .If(() => ClassProvider.Fade(), () => IsDismisable)
            .If(() => ClassProvider.Show(), () => IsDismisable && IsShow);

            base.RegisterClasses();
        }
Exemple #12
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.DropdownToggle())
            .If(() => ClassProvider.DropdownToggleColor(Color), () => Color != Color.None && !IsOutline)
            .If(() => ClassProvider.DropdownToggleOutline(Color), () => Color != Color.None && IsOutline)
            .If(() => ClassProvider.DropdownToggleSize(Size), () => Size != ButtonSize.None)
            .If(() => ClassProvider.DropdownToggleSplit(), () => IsSplit);

            base.RegisterClasses();
        }
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Dropdown())
            .If(() => ClassProvider.DropdownGroup(), () => IsGroup)
            .If(() => ClassProvider.DropdownShow(), () => IsOpen)
            .If(() => ClassProvider.DropdownRight(), () => IsRightAligned)
            .If(() => ClassProvider.DropdownDirection(Direction), () => Direction != Direction.Down);

            base.RegisterClasses();
        }
Exemple #14
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Tabs())
            .If(() => ClassProvider.TabsCards(), () => IsCards)
            .If(() => ClassProvider.TabsPills(), () => IsPills)
            .If(() => ClassProvider.TabsFullWidth(), () => IsFullWidth)
            .If(() => ClassProvider.TabsJustified(), () => IsJustified)
            .If(() => ClassProvider.TabsVertical(), () => IsVertical);

            base.RegisterClasses();
        }
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.DropdownMenu())
            .If(() => ClassProvider.DropdownMenuShow(), () => IsOpen)
            .If(() => ClassProvider.DropdownMenuRight(), () => IsRightAligned);

            BodyClassMapper
            .Add(() => ClassProvider.DropdownMenuBody());

            base.RegisterClasses();
        }
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Nav())
            .If(() => ClassProvider.NavTabs(), () => IsTabs)
            .If(() => ClassProvider.NavCards(), () => IsCards)
            .If(() => ClassProvider.NavPills(), () => IsPills)
            .If(() => ClassProvider.NavVertical(), () => IsVertical)
            .If(() => ClassProvider.NavFill(Fill), () => Fill != NavFillType.None);

            base.RegisterClasses();
        }
Exemple #17
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Table())
            .If(() => ClassProvider.TableFullWidth(), () => IsFullWidth)
            .If(() => ClassProvider.TableStriped(), () => IsStriped)
            .If(() => ClassProvider.TableBordered(), () => IsBordered)
            .If(() => ClassProvider.TableHoverable(), () => IsHoverable)
            .If(() => ClassProvider.TableNarrow(), () => IsNarrow)
            .If(() => ClassProvider.TableBorderless(), () => IsBorderless);

            base.RegisterClasses();
        }
Exemple #18
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Button())
            .If(() => ClassProvider.ButtonColor(Color), () => Color != Color.None && !IsOutline)
            .If(() => ClassProvider.ButtonOutline(Color), () => Color != Color.None && IsOutline)
            .If(() => ClassProvider.ButtonSize(Size), () => Size != ButtonSize.None)
            .If(() => ClassProvider.ButtonBlock(), () => IsBlock)
            .If(() => ClassProvider.ButtonActive(), () => IsActive)
            .If(() => ClassProvider.ButtonLoading(), () => IsLoading);

            AddonContainerClassMapper
            .If(() => ClassProvider.AddonContainer(), () => IsAddons);

            base.RegisterClasses();
        }