52 lines
1.9 KiB
Plaintext
52 lines
1.9 KiB
Plaintext
|
|
@*<div class="modal fade show" id="modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true" style="margin-top:50px">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="modalTitle">@Title</h5>
|
|
<button type="button" style="margin-left:0" class="close" data-dismiss="modal" aria-label="Close" @onclick="ModalClose">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body" id="body">
|
|
@ChildContent
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
|
|
<div class="modal fade show bd-example-modal-lg" id="modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true" style="margin-top:50px;overflow-y:auto">
|
|
<div class="modal-dialog modal-lg modal-dialog-scrollable " style="overflow-y:visible" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="modalTitle">@Title</h5>
|
|
<button type="button" style="margin-left:0" class="close" data-dismiss="modal" aria-label="Close" @onclick="ModalClose">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body" style="overflow-y:visible" id="body">
|
|
@ChildContent
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@code {
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
[Parameter]
|
|
public EventCallback OnClose { get; set; }
|
|
|
|
[Parameter]
|
|
public string Title { get; set; }
|
|
|
|
public Task ModalClose()
|
|
{
|
|
return OnClose.InvokeAsync();
|
|
}
|
|
|
|
|
|
}
|