We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I try to use Modal Service and follow the instructions in documentation but the modal not shown this Home.razor @page "/" @using BlazorBootstrap Home
<Button Color="ButtonColor.Dark" @OnClick="() => ShowModal(ModalType.Dark)">Show Dark Modal
@code { [Inject] ModalService ModalService { get; set; } = default!; private async Task ShowModal(ModalType modalType) { var modalOption = new ModalOption { Title = "Modal title", Message = "Modal body text goes here.", Type = modalType, };
await ModalService.ShowAsync(modalOption); }
}
I register service in program.cs
builder.Services.AddBlazorBootstrap();
add the links of css and js files in app.razor <script src="_content/Blazor.Bootstrap/blazor.bootstrap.js"></script>
in MainLayout.razor I add in the last of page
but the code not work
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I try to use Modal Service and follow the instructions in documentation but the modal not shown
this Home.razor
@page "/"
@using BlazorBootstrap
Home
Hello, world!
Welcome to your new app.<Button Color="ButtonColor.Dark" @OnClick="() => ShowModal(ModalType.Dark)">Show Dark Modal
@code {
[Inject] ModalService ModalService { get; set; } = default!;
private async Task ShowModal(ModalType modalType)
{
var modalOption = new ModalOption
{
Title = "Modal title",
Message = "Modal body text goes here.",
Type = modalType,
};
}
I register service in program.cs
builder.Services.AddBlazorBootstrap();
add the links of css and js files in app.razor
<script src="_content/Blazor.Bootstrap/blazor.bootstrap.js"></script>
in MainLayout.razor I add
in the last of page
but the code not work
The text was updated successfully, but these errors were encountered: