BlazorStrap Versions Save

Bootstrap 4 Components for Blazor Framework

v5.2.100-Preview1

11 months ago

Warning: Contains breaking changes for Interop if you were calling it directly moved to IBlazorStrap.JavascriptInterop Warning: Contains breaking changes for ThemeSwitcher now takes an Enum of the default themes or URI to the CSS file. Note: This is the first release with the new interop. Test before using it in production.

To upgrade, remove blazorstrap.js script from _host.cshtml or index.html. Then it's recommended to replace <BSToaster/> with <BSCore/>. Placing it after your @Body in your main layout. If you're placing the toaster, in a specific location use <BSCore HasToaster="false" /> keeping your <BSToaser/> where you like.

Note. <BSCore/> is also responsible for rendering the backdrop now. If omitted, the backdrop will not be shown. BSCore also preloads the javascript module so it's ready when called by components.

<script src="_content/BlazorStrap/popper.min.js"></script> is still required.

Changes:

  • Rewritten: Interop was completely replaced.
  • Adds: IsMouseOver to drop downs.
  • Changes: Tooltips, Popovers, Modals, OffCanvas will no longer render on the page unless opened by default.

5.1.102.51723

1 year ago

Minor update completely optional

Adds

  • ContainerClass to BSInputSwitch. @LockTar

    NOTE: BSInputCheckbox uses the same base type as BSInputSwitch if used on BSInputCheckbox it dumps the values into the Class parameter.

  • Adds bool/bool? null support for InputType.Switch.

    NOTE:

    <option value="">Null</option>
    <option value="true">True</option>
    <option value="false">False</option>
    

5.1.102.50923

1 year ago

Fixes Human Error...

https://www.nuget.org/packages/BlazorStrap/5.1.102.50923

First, my apologies. I introduced a deadlock on BSCollapse with last minute fix for a rendering issue. This release fixes that issue. You only need to update the core package BlazorStrap to this version. You do not need to update the BlazorStrap.V4/BlazorStrap.V5 from 5.1.102

5.1.102

1 year ago

Fixes/Changes

  • Fixed an access issue with BSToast collection. Thanks, @EMaderbacher
  • Fixed an issue where context was not shown correctly on BSModal Thanks, @EMaderbacher
  • Fixed a rendering lock issue with BSCollapse. That could cause a race condition with StateHasChanged causing improper display of the element.
  • Added: ModalContentClass to BSModel. ContentClass marked as obsolete to be removed later @EMaderbacher
  • Adds HasIcon for BSToast
  • Adds Invoke to BSNavitem
  • Adds: Adds NoClickEvent to BSPopover to prevent the default javascript click event on the target from being created
  • Adds: Horizontal Collapse to both V4 and V5
  • Performance improvements: for BSModal, BSDropdown, BSOffcanvas on server side.
  • Misc improvements and fixes

https://www.nuget.org/packages/BlazorStrap/5.1.102.50923 https://www.nuget.org/packages/BlazorStrap.V4/5.1.102 https://www.nuget.org/packages/BlazorStrap.V5/5.1.102

5.1.101

1 year ago

Very Small update.

  • Adds OnValueChange to inputs (testing)
  • Fixed: Ignores case on enum for the current theme.
  • PR #574 Thanks @jonsaich
  • PR #571 Thanks @amunk

5.1.100

1 year ago

5.1.100

Warning : BlazorStrap and BlazorStrap.V# packages must be the same version.

Warning : BSModal Content now has a Context it might be necessary to rename it when upgrading.

The following steps will help you upgrade from both existing versions of BlazorStrap. V5.0 to V5.1

  • Add <PackageReference Include="BlazorStrap.V5" Version="5.1.100" /> to csproj
  • Add @using BlazorStrap.V5 to your _imports.razor

V1 To V5.1 There is no direct upgrade path as some components and parameters have been renamed. However, to get started do the following actions. Assuming you're still targeting Bootstrap 4

  • Add <PackageReference Include="BlazorStrap.V4" Version="5.1.100" /> to csproj
  • Add @using BlazorStrap.V4 to your _imports.razor

Fixes/Changes

  • BSInputCheckbox and BSInputRadio will now trigger EditContext.OnFieldChanged when toggled
  • OnReset now is of type IBSForm.
  • ShowAsync/HideAsync/ToggleAsync now awaits for the animation to complete or timeout before completing the task.
  • ShowAsync/HideAsync/ToggleAsync also has a new event queuing system.

These changes affect the following components

  • BSModal
  • BSOffCanvas
  • BSAccordionItem
  • BSCollapseBase

Adds

  • Reset method to BSForm. This will unmark the form as modified, removing validation messages and resetting the field to the value given when the component was initialized.
  • BSModal/BSForm
    • BSModal now has HideOnSubmit and HideOnValidSubmit parameters. When true BSForm will auto-hide the Modal.
  • BSToaster
    • Adds Position, ZIndex parameters allow you to better control where your toasts are projected. Defaults are now position fixed, 1025

5.1.100-Preview6

1 year ago

5.1.100-Preview6

Note: This should be the last preview before release.

Warning : BlazorStrap and BlazorStrap.V# packages must be the same version.

The following steps will help you upgrade from both existing versions of BlazorStrap. V5.0 to V5.1

  • Add <PackageReference Include="BlazorStrap.V5" Version="5.1.100-Preview6" /> to csproj
  • Add @using BlazorStrap.V5 to your _imports.razor

V1 To V5.1 There is no direct upgrade path as some components and parameters have been renamed. However, to get started do the following actions. Assuming you're still targeting Bootstrap 4

  • Add <PackageReference Include="BlazorStrap.V4" Version="5.1.100-Preview6" /> to csproj
  • Add @using BlazorStrap.V4 to your _imports.razor

Warning : BSModal Content now has a Context it might be necessary to rename it you may have to rename it when upgrading.

Fixes/Changes

  • BSInputCheckbox and BSInputRadio will now trigger EditContext.OnFieldChanged when toggled
  • OnReset now is of type IBSForm.
  • ShowAsync/HideAsync/ToggleAsync now awaits for the animation to complete or timeout before completing the task.
  • ShowAsync/HideAsync/ToggleAsync also has a new event queuing system.

These changes affect the following components

  • BSModal
  • BSOffCanvas
  • BSAccordionItem
  • BSCollapseBase

Adds

  • Reset method to BSForm. This will unmark the form as modified, removing validation messages and resetting the field to the value given when the component was initialized.
  • BSModal/BSForm
    • BSModal now has HideOnSubmit and HideOnValidSubmit parameters. When true BSForm will auto-hide the Modal.
  • BSToaster
    • Adds Position, ZIndex parameters allow you to better control where your toasts are projected. Defaults are now position fixed, 1025

5.1.100-Preview5

1 year ago

5.1.100-Preview5

Fixes/Changes

  • BSModal now uses a new Show/Hide style.
    • Fixes modal getting stuck in odd states.
  • BSOffCanvas now uses the same new Show/Hide style

Adds

BSModal/BSForm

  • BSModal now has HideOnSubmit and HideOnValidSubmit parameters. When true BSForm will auto-hide the Modal.

5.1.100-Beta2

1 year ago

Docs https://blazorstrap.io/Beta/

  • Change: BSInputCheckbox and BSInputRadio will now trigger EditContext.OnFieldChanged when toggled
  • Change: OnReset now is of type IBSForm.
  • Added: Reset method to BSForm. This will unmark the form as modified, removing validation messages and resetting the field to the value given when the component was initialized.

5.1.100-Beta1

1 year ago

Docs https://blazorstrap.io/Beta/

New Installs

_Imports.razor

For Bootstrap 4 @using BlazorStrap.V4 For Bootstrap 5 @using BlazorStrap.V5

In _Host.cshtml for server side or index.html for wasm add the following For bootstrap 4.

  • Head section
    • <link href="_content/BlazorStrap.V4/offcanvas.css" rel="stylesheet" /> or your custom version of it.
    • <link href=yourproject.styles.css" rel="stylesheet">
  • End of Body section
    • <script src="_content/BlazorStrap/popper.min.js"></script>
    • <script src="_content/BlazorStrap/blazorstrap.js"></script>

For bootstrap 5. In _Host.cshtml for server side or index.html for wasm add the following For bootstrap 4.

  • Head section
    • <link href=yourproject.styles.css" rel="stylesheet">
  • End of Body section
    • <script src="_content/BlazorStrap/popper.min.js"></script>
    • <script src="_content/BlazorStrap/blazorstrap.js"></script>

Upgrading from BlazorStrap 5.0.x

Change @using BlazorStrap to @using BlazorStrap.V5 in your _Imports.razor Add package https://www.nuget.org/packages/BlazorStrap.V5/5.1.100-Beta1

Upgrading from BlazorStrap 1.x

There is no direct upgrade path as some components have changed names and/or parameters. Please follow new install steps to get started.