예제 #1
0
 /// <inheritdoc />
 protected override string GetComponentCssClass()
 {
     return(ClassList.Create("header")
            .Add("rz-header")
            .Add("fixed", Layout == null)
            .ToString());
 }
 /// <inheritdoc />
 protected override string GetComponentCssClass()
 {
     return(ClassList.Create()
            .Add("rz-calendar-inline", Inline)
            .Add(FieldIdentifier, EditContext)
            .ToString());
 }
예제 #3
0
        /// <inheritdoc />
        protected override string GetComponentCssClass()
        {
            var classList = ClassList.Create("rz-body")
                            .Add("body")
                            .Add("body-expanded", Expanded);

            return(classList.ToString());
        }
 ClassList IconClassList(RadzenRadioButtonListItem <TValue> item) => ClassList.Create("rz-radiobutton-icon")
 .Add("rzi rzi-circle-on", IsSelected(item));
 ClassList ItemClassList(RadzenRadioButtonListItem <TValue> item) => ClassList.Create("rz-radiobutton-box")
 .Add("rz-state-active", IsSelected(item))
 .AddDisabled(Disabled || item.Disabled);
 ClassList IconClassList(RadzenCheckBoxListItem<TValue> item) => ClassList.Create("rz-chkbox-icon")
                                                                     .Add("rzi rzi-check", IsSelected(item));
 ClassList ItemClassList(RadzenCheckBoxListItem<TValue> item) => ClassList.Create("rz-chkbox-box")
                                                                     .Add("rz-state-active", IsSelected(item))
                                                                     .AddDisabled(Disabled || item.Disabled);
예제 #8
0
 /// <summary>
 /// Gets the class list.
 /// </summary>
 /// <param name="className">Name of the class.</param>
 /// <returns>ClassList.</returns>
 protected ClassList GetClassList(string className) => ClassList.Create(className)
 .AddDisabled(Disabled)
 .Add(FieldIdentifier, EditContext);
예제 #9
0
 /// <inheritdoc />
 protected override string GetComponentCssClass()
 {
     return(ClassList.Create("rz-sidebar").Add("rz-sidebar-expanded", expanded == true)
            .Add("rz-sidebar-collapsed", expanded == false)
            .ToString());
 }
예제 #10
0
 ClassList ButtonClassList(RadzenSelectBarItem item) => ClassList.Create("rz-button rz-button-text-only")
 .Add("rz-state-active", IsSelected(item))
 .AddDisabled(Disabled);