BlazorBSModal 2.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package BlazorBSModal --version 2.4.0                
NuGet\Install-Package BlazorBSModal -Version 2.4.0                
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.
<PackageReference Include="BlazorBSModal" Version="2.4.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlazorBSModal --version 2.4.0                
#r "nuget: BlazorBSModal, 2.4.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. 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.4.0

// Install BlazorBSModal as a Cake Tool
#tool nuget:?package=BlazorBSModal&version=2.4.0                

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
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.

Modal Elements Class Parameters