Example #1
0
        protected override void RegisterStyles()
        {
            StyleMapper
            .If(() => StyleProvider.ModalBodyMaxHeight(MaxHeight ?? 0), () => MaxHeight != null);

            base.RegisterStyles();
        }
Example #2
0
        protected override void BuildStyles(StyleBuilder builder)
        {
            if (MaxHeight != null)
            {
                builder.Append(StyleProvider.ModalBodyMaxHeight(MaxHeight ?? 0));
            }

            base.BuildStyles(builder);
        }