BlazorKit.Spinners
0.7.0-g204c2d61c9
This is a prerelease version of BlazorKit.Spinners.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BlazorKit.Spinners --version 0.7.0-g204c2d61c9
NuGet\Install-Package BlazorKit.Spinners -Version 0.7.0-g204c2d61c9
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="BlazorKit.Spinners" Version="0.7.0-g204c2d61c9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlazorKit.Spinners --version 0.7.0-g204c2d61c9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BlazorKit.Spinners, 0.7.0-g204c2d61c9"
#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 BlazorKit.Spinners as a Cake Addin
#addin nuget:?package=BlazorKit.Spinners&version=0.7.0-g204c2d61c9&prerelease
// Install BlazorKit.Spinners as a Cake Tool
#tool nuget:?package=BlazorKit.Spinners&version=0.7.0-g204c2d61c9&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BlazorKit.Spinners
A Blazor library for loading spinners.
Screenshots
Installation
With Package Manager:
Install-Package BlazorKit.Spinners
With .NET CLI:
dotnet add package BlazorKit.Spinners
How to use it
Razor
<SpinnerLoader IsLoading="isLoading" HasError="hasError" Size="46px" AccentColor="#3498db" Color="White" Center="true" Spinner="SpinnerTemplate.Loader1">
<ContentTemplate>
<table class="table">
...
</table>
</ContentTemplate>
<ErrorContentTemplate>
<tr>
<td colspan="4">
<div class="alert alert-danger">Fail</div>
</td>
</tr>
</ErrorContentTemplate>
</SpinnerLoader>
Code Behind
private bool hasError = false;
private bool isLoading = true;
protected override async Task OnInitializedAsync()
{
isLoading = true;
await Task.Delay(5000);
try
{
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");
}
catch (Exception)
{
hasError = true;
}
finally
{
isLoading = false;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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.
-
net5.0
- BlazorComponentUtilities (>= 1.7.1)
- Microsoft.AspNetCore.Components.Web (>= 5.0.11)
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 |
---|---|---|
0.7.26 | 239 | 4/4/2023 |
0.7.21 | 330 | 11/28/2022 |
0.7.19 | 425 | 8/24/2022 |
0.7.16 | 1,307 | 2/9/2022 |
0.7.15 | 424 | 2/9/2022 |
0.7.14 | 426 | 2/9/2022 |
0.7.6 | 448 | 2/4/2022 |
0.7.5 | 443 | 1/26/2022 |
0.7.4 | 431 | 1/26/2022 |
0.7.3 | 441 | 1/25/2022 |
0.7.2-g711710daf6 | 176 | 1/25/2022 |
0.7.1-gdb80b3ccb2 | 176 | 1/25/2022 |
0.7.0-ge2190874ab | 188 | 1/25/2022 |
0.7.0-g204c2d61c9 | 182 | 1/25/2022 |
0.6.1-gc85b086e38 | 200 | 11/5/2021 |
0.6.1-g95908fa74c | 187 | 1/25/2022 |
0.6.1-g07f1feb716 | 168 | 1/25/2022 |
0.6.0-ga538d3e490 | 210 | 11/5/2021 |
0.5.0-g93f2077247 | 214 | 11/5/2021 |
0.5.0-g016fe6c632 | 221 | 11/4/2021 |
0.7.0