Exemple #1
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();
        }