コード例 #1
0
ファイル: AlertType.cs プロジェクト: HoodDigital/Hood
        public static string ToIconSizeCssClass(this AlertSize alertSize)
        {
            switch (alertSize)
            {
            case AlertSize.Large:
                return($"fa fa-2x");

            case AlertSize.Epic:
                return($"fa fa-3x");
            }
            return("fa");
        }
コード例 #2
0
ファイル: AlertBuilder.cs プロジェクト: eternalteach/BookWarm
        public AlertBuilder Size(AlertSize size)
        {
            switch (size)
            {
            case AlertSize.Small:
                this.Component.AppendCssClass("alert-sm");
                break;

            case AlertSize.Large:
                this.Component.AppendCssClass("alert-lg");
                break;
            }
            return(this);
        }