Ejemplo n.º 1
0
        /// <inheritdoc/>
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.BarItem(State.Mode));
            builder.Append(ClassProvider.BarItemActive(State.Mode), State.Active);
            builder.Append(ClassProvider.BarItemDisabled(State.Mode), State.Disabled);
            builder.Append(ClassProvider.BarItemHasDropdown(State.Mode), HasDropdown);

            base.BuildClasses(builder);
        }
Ejemplo n.º 2
0
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.BarItem());
            builder.Append(ClassProvider.BarItemActive(), Active);
            builder.Append(ClassProvider.BarItemDisabled(), Disabled);
            builder.Append(ClassProvider.BarItemHasDropdown(), HasDropdown);
            builder.Append(ClassProvider.BarItemHasDropdownShow(), HasDropdown && barDropdown?.Visible == true);

            base.BuildClasses(builder);
        }
Ejemplo n.º 3
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();
        }