abp
abp copied to clipboard
Blazor UiMessageAlert with html message
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
At the moment, UiMessageAlert only takes strings. And by now I coult not figure out how to pass in a multiline string. Therefore, long text looks horrible. In addition to that it may be interesting to punch in something more formatted.
framework/src/Volo.Abp.BlazoriseUI/Components/UiMessageAlert.razor
Describe the solution you'd like
option a: overloads here for html:
option b: additional property in UiMessageOptions
Something like IsMessageHtmlMarkup which defaults to false.
UI could then be something like:
<Paragraph TextAlignment="TextAlignment.Center" Margin="Margin.Is0.FromBottom" Style="white-space: break-spaces;">
@if(!IsMessageHtmlMarkup)
{
@Message
}
else
{
@((MarkupString)Message)
}
</Paragraph>
https://github.com/abpframework/abp/blob/f93a01f9a2996871fe00f15fedac958b91101c64/framework/src/Volo.Abp.BlazoriseUI/Components/UiMessageAlert.razor
Additional context
No response