mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-12-22 16:42:50 +01:00
47 lines
1016 B
Plaintext
47 lines
1016 B
Plaintext
@using Phantom.Web.Components.Utils
|
|
<div id="@Id" class="modal fade" tabindex="-1">
|
|
<div class="modal-dialog modal-dialog-centered">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">
|
|
@if (TitleText != null) {
|
|
<text>@TitleText</text>
|
|
}
|
|
else {
|
|
@Title
|
|
}
|
|
</h5>
|
|
</div>
|
|
<div class="modal-body">
|
|
@Body
|
|
</div>
|
|
<div class="modal-footer">
|
|
@Footer
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@code {
|
|
|
|
[Parameter, EditorRequired]
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
[Parameter]
|
|
public string? TitleText { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment? Title { get; set; }
|
|
|
|
[Parameter, EditorRequired]
|
|
public RenderFragment? Body { get; set; }
|
|
|
|
[Parameter, EditorRequired]
|
|
public RenderFragment? Footer { get; set; }
|
|
|
|
protected override void OnParametersSet() {
|
|
BlazorUtils.RequireEitherParameterIsSet(TitleText, Title);
|
|
}
|
|
|
|
}
|