BlazorBSModal 2.6.5
dotnet add package BlazorBSModal --version 2.6.5
NuGet\Install-Package BlazorBSModal -Version 2.6.5
<PackageReference Include="BlazorBSModal" Version="2.6.5" />
paket add BlazorBSModal --version 2.6.5
#r "nuget: BlazorBSModal, 2.6.5"
// Install BlazorBSModal as a Cake Addin #addin nuget:?package=BlazorBSModal&version=2.6.5 // Install BlazorBSModal as a Cake Tool #tool nuget:?package=BlazorBSModal&version=2.6.5
BlazorBSModal
Bootstrap Modal For Blazor Wasm
Install
Install this package in client_side project packages with:
Install-Package BlazorBSModal -Version x.x
x.x is version of package for use last version see https://www.nuget.org/packages/BlazorBSModal
How to use
add Bootstrap v4 css and js files in client_side _Host.cshml or index.html
help:https://getbootstrap.com/docs/4.0/getting-started/introduction/
then use:
<BlazorBSModal.BSModal CloseBtnText="Close" ModalTitle="modalTitle" @ref="Modal" OnCloseModal="closeModal" OnOpenModal="openModal">
<ModalBodyContentHtml>
//your Modal Body
</ModalBodyContentHtml>
</BlazorBSModal.BSModal>
then define Modal Ref in your code for open and close Manual:
private BSModal Modal { get; set; }
then use:
Modal.Open();
Modal.Close();
Finally, you can use opening and closing events callback:
private void closeModal()
{
Console.WriteLine("closeModal");
}
private void openModal()
{
Console.WriteLine("openModal");
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
2.6.5 | 1,049 | 11/5/2022 | |
2.5.5 | 963 | 6/12/2022 | |
2.5.4 | 990 | 5/29/2022 | |
2.5.3 | 1,016 | 5/29/2022 | |
2.5.2 | 1,013 | 5/29/2022 | |
2.5.1 | 994 | 5/29/2022 | |
2.5.0 | 997 | 5/29/2022 | |
2.4.1 | 1,061 | 5/29/2022 | |
2.4.0 | 1,011 | 5/29/2022 | |
2.3.0 | 1,035 | 5/29/2022 | |
2.2.0 | 1,021 | 5/29/2022 | |
2.1.2 | 1,006 | 5/23/2022 | |
2.1.1 | 975 | 5/23/2022 | |
2.1.0 | 992 | 5/23/2022 | |
2.0.0 | 1,004 | 5/22/2022 | |
1.0.6 | 921 | 8/31/2021 | |
1.0.5 | 972 | 8/1/2021 | |
1.0.4 | 925 | 7/21/2021 | |
1.0.3 | 925 | 7/21/2021 | |
1.0.2 | 233 | 7/21/2021 | |
1.0.1 | 237 | 7/21/2021 | |
1.0.0 | 232 | 7/21/2021 |
Close And Dispose When Click On Out Of Modal