-
Beta Was this translation helpful? Give feedback.
Answered by
gvreddy04
Apr 21, 2024
Replies: 1 comment
-
@Sinkira Thank you for using BlazorBootstrap. Set Screenshot: Sample code: <Modal @ref="modal" Title="Modal title" ShowCloseButton="false">
<BodyTemplate>
Modal body text goes here.
</BodyTemplate>
<FooterTemplate>
<Button Color="ButtonColor.Secondary" @onclick="OnHideModalClick">Close</Button>
<Button Color="ButtonColor.Primary">Save changes</Button>
</FooterTemplate>
</Modal>
<Button Color="ButtonColor.Primary" @onclick="OnShowModalClick">Show Modal</Button>
@code {
private Modal modal = default!;
private async Task OnShowModalClick()
{
await modal.ShowAsync();
}
private async Task OnHideModalClick()
{
await modal.HideAsync();
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Sinkira
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Sinkira Thank you for using BlazorBootstrap.
Set
ShowCloseButton="false"
to hide the X icon.Screenshot:
Sample code: