Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor UiMessageAlert with html message #19785

Open
1 task done
nebula2 opened this issue May 12, 2024 · 0 comments
Open
1 task done

Blazor UiMessageAlert with html message #19785

nebula2 opened this issue May 12, 2024 · 0 comments

Comments

@nebula2
Copy link
Contributor

nebula2 commented May 12, 2024

Is there an existing issue for this?

  • 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:

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant