BlazorBSModal 2.5.5

.NET 6.0
NuGet\Install-Package BlazorBSModal -Version 2.5.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package BlazorBSModal --version 2.5.5
<PackageReference Include="BlazorBSModal" Version="2.5.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlazorBSModal --version 2.5.5
#r "nuget: BlazorBSModal, 2.5.5"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install BlazorBSModal as a Cake Addin
#addin nuget:?package=BlazorBSModal&version=2.5.5

// Install BlazorBSModal as a Cake Tool
#tool nuget:?package=BlazorBSModal&version=2.5.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
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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.5.5 87 6/12/2022
2.5.4 93 5/29/2022
2.5.3 94 5/29/2022
2.5.2 95 5/29/2022
2.5.1 94 5/29/2022
2.5.0 106 5/29/2022
2.4.1 100 5/29/2022
2.4.0 89 5/29/2022
2.3.0 89 5/29/2022
2.2.0 93 5/29/2022
2.1.2 93 5/23/2022
2.1.1 79 5/23/2022
2.1.0 81 5/23/2022
2.0.0 86 5/22/2022
1.0.6 180 8/31/2021
1.0.5 206 8/1/2021
1.0.4 184 7/21/2021
1.0.3 181 7/21/2021
1.0.2 126 7/21/2021
1.0.1 127 7/21/2021
1.0.0 134 7/21/2021

Close And Dispose When Click On Out Of Modal