Browse Source
Merge pull request #1 from jack-gaojz/dev-issue-6369
[dev-issue-6369]Added the "scrollable" feature for the Bootstrap Modal p…
pull/6659/head
Jack Gao
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
120 additions and
112 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Modal/AbpModalTagHelper.cs
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Modal/AbpModalTagHelperService.cs
|
|
@ -6,6 +6,8 @@ |
|
|
|
|
|
|
|
|
public bool? Centered { get; set; } = false; |
|
|
public bool? Centered { get; set; } = false; |
|
|
|
|
|
|
|
|
|
|
|
public bool? Scrollable { get; set; } = false; |
|
|
|
|
|
|
|
|
public bool? Static { get; set; } = false; |
|
|
public bool? Static { get; set; } = false; |
|
|
|
|
|
|
|
|
public AbpModalTagHelper(AbpModalTagHelperService tagHelperService) |
|
|
public AbpModalTagHelper(AbpModalTagHelperService tagHelperService) |
|
|
|
|
|
@ -78,6 +78,12 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal |
|
|
classNames.Append("modal-dialog-centered"); |
|
|
classNames.Append("modal-dialog-centered"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (TagHelper.Scrollable ?? false) |
|
|
|
|
|
{ |
|
|
|
|
|
classNames.Append(" "); |
|
|
|
|
|
classNames.Append("modal-dialog-scrollable"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (TagHelper.Size != AbpModalSize.Default) |
|
|
if (TagHelper.Size != AbpModalSize.Default) |
|
|
{ |
|
|
{ |
|
|
classNames.Append(" "); |
|
|
classNames.Append(" "); |
|
|
|