|
|
|
@ -10,14 +10,23 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal |
|
|
|
{ |
|
|
|
output.TagName = "div"; |
|
|
|
output.Attributes.AddClass("modal-header"); |
|
|
|
output.Content.SetHtmlContent(CreateContent()); |
|
|
|
output.PreContent.SetHtmlContent(CreatePreContent()); |
|
|
|
output.PostContent.SetHtmlContent(CreatePostContent()); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual string CreateContent() |
|
|
|
protected virtual string CreatePreContent() |
|
|
|
{ |
|
|
|
var sb = new StringBuilder(); |
|
|
|
|
|
|
|
sb.AppendLine(" <h5 class=\"modal-title\">" + TagHelper.Title + "</h5>"); |
|
|
|
|
|
|
|
return sb.ToString(); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual string CreatePostContent() |
|
|
|
{ |
|
|
|
var sb = new StringBuilder(); |
|
|
|
|
|
|
|
sb.AppendLine(" <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">"); |
|
|
|
sb.AppendLine(" <span aria-hidden=\"true\">×</span>"); |
|
|
|
sb.AppendLine(" </button>"); |
|
|
|
|