BlazorStrap 5.1.100
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