Ejemplo n.º 1
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.Alert());
            builder.Append(ClassProvider.AlertColor(Color), Color != Color.None);
            builder.Append(ClassProvider.AlertDismisable(), IsDismisable);
            builder.Append(ClassProvider.AlertFade(), IsDismisable);
            builder.Append(ClassProvider.AlertShow(), IsDismisable && IsShow);

            base.BuildClasses(builder);
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.Alert());
            builder.Append(ClassProvider.AlertColor(Color), Color != Color.None);
            builder.Append(ClassProvider.AlertDismisable(), Dismisable);
            builder.Append(ClassProvider.AlertFade(), Dismisable);
            builder.Append(ClassProvider.AlertShow(), Dismisable && Visible);
            builder.Append(ClassProvider.AlertHasMessage(), hasMessage);
            builder.Append(ClassProvider.AlertHasDescription(), hasDescription);

            base.BuildClasses(builder);
        }