protected override void CreateComponentCssClass(ICollection <string> collection)
        {
            collection.Add("pagination");


            if (Size != Size.Default)
            {
                collection.Add(ComponentUtil.GetSizeCssClass(Size, "pagination-"));
            }
        }
Esempio n. 2
0
        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}-"));
            }
        }
Esempio n. 3
0
        /// <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");
            }
        }
Esempio n. 4
0
        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");
            }
        }
Esempio n. 5
0
        /// <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");
            }
        }