mirror of https://github.com/abpframework/abp.git
7 changed files with 76 additions and 8 deletions
@ -0,0 +1,9 @@ |
|||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal |
||||
|
{ |
||||
|
public enum AbpModalSize |
||||
|
{ |
||||
|
Default, |
||||
|
Small, |
||||
|
Large |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal |
||||
|
{ |
||||
|
public static class AbpModalSizeExtensions |
||||
|
{ |
||||
|
public static string ToClassName(this AbpModalSize size) |
||||
|
{ |
||||
|
switch (size) |
||||
|
{ |
||||
|
case AbpModalSize.Small: |
||||
|
return "modal-sm"; |
||||
|
case AbpModalSize.Large: |
||||
|
return "modal-lg"; |
||||
|
case AbpModalSize.Default: |
||||
|
return ""; |
||||
|
default: |
||||
|
throw new AbpException($"Unknown {nameof(AbpModalSize)}: {size}"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue