protected override void CreateComponentCssClass(ICollection <string> collection) { collection.Add("pagination"); if (Size != Size.Default) { collection.Add(ComponentUtil.GetSizeCssClass(Size, "pagination-")); } }
protected override void CreateComponentCssClass(ICollection <string> collection) { var spinnerClass = Grow ? "grow" : "border"; collection.Add($"spinner-{spinnerClass}"); if (Color.HasValue) { collection.Add(ComponentUtil.GetColorCssClass(Color.Value, "text-")); } if (Size != Size.Default) { collection.Add(ComponentUtil.GetSizeCssClass(Size, $"spinner-{spinnerClass}-")); } }
/// <summary> /// 创建组件所需要的 css Class。 /// </summary> protected override void CreateComponentCssClass(ICollection <string> collection) { if (Size != Size.Default) { collection.Add(ComponentUtil.GetSizeCssClass(Size, "btn-group-")); } if (Vertical) { collection.Add("btn-group-vertical"); } else { collection.Add("btn-group"); } }
protected override void CreateComponentCssClass(ICollection <string> collection) { if (Centered) { collection.Add("modal-dialog-centered"); } if (Size != Size.Default) { collection.Add(ComponentUtil.GetSizeCssClass(Size, "modal-")); } if (Scrollable) { collection.Add("modal-dialog-scrollable"); } }
/// <summary> /// 构建按钮的 class 名称。 /// </summary> protected override void CreateComponentCssClass(ICollection <string> collection) { collection.Add("btn"); if (Blocked) { collection.Add("btn-block"); } collection.Add(string.Format(" btn{0}-{1}", (Outline ? "-outline" : string.Empty), ComponentUtil.GetColorCssClass(Color))); if (Size != Size.Default) { collection.Add(ComponentUtil.GetSizeCssClass(Size, "btn-")); } if (Actived) { collection.Add("active"); } }