Tech.UI.WasmHttpWithToasAndLoader
1.0.0
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 Tech.UI.WasmHttpWithToasAndLoader --version 1.0.0
NuGet\Install-Package Tech.UI.WasmHttpWithToasAndLoader -Version 1.0.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="Tech.UI.WasmHttpWithToasAndLoader" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tech.UI.WasmHttpWithToasAndLoader" Version="1.0.0" />
<PackageReference Include="Tech.UI.WasmHttpWithToasAndLoader" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tech.UI.WasmHttpWithToasAndLoader --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tech.UI.WasmHttpWithToasAndLoader, 1.0.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.
#:package Tech.UI.WasmHttpWithToasAndLoader@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tech.UI.WasmHttpWithToasAndLoader&version=1.0.0
#tool nuget:?package=Tech.UI.WasmHttpWithToasAndLoader&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
***
Bu Paket i�erisinde Tech.UI.Toast ve Tech.UI.Loader paketleri haz�r geldi�i i�in bu paketler ayr�ca kurulmamal�d�r. Kurulu ise kald�rlmas� gerekmektedir. Yoksa hata vermese bile �al��mayacakt�r. Bu paketlerin kullan�m �ekillerinde bir de�i�iklik yoktur.
// index.html or _Host.cshtml or _Layout.cshtml
<link href="_content/Tech.UI.WasmHttpWithToast/css/toast.css" rel="stylesheet" />
<link href="_content/Tech.UI.WasmHttpWithToast/css/loader.css" rel="stylesheet" />
// _Imports.razor
@using Tech.UI.WasmHttpWithToast.Services.HttpServices
@using Tech.UI.WasmHttpWithToast.Components
@using Tech.UI.WasmHttpWithToast.Services.ToastServices @* Toast kullan�m� i�indir. *@
@using Tech.UI.WasmHttpWithToast.Services.LoaderServices @* Loader kullan�m� i�indir. *@
// Program.cs
using Tech.UI.WasmHttpWithToast.Services;
builder.Services.AddWasmHttpServices();
// App.razor or MainLayout.razor
<TechLoaderRazor /> @* Toast kullan�m� i�indir. *@
<TechToastRazor /> @* Loader kullan�m� i�indir. *@
// In Blazor component
@inject ITechHttpService _techHttpService
@inject ITechToastService _techToastService // Toast kullan�m� i�indir.
@inject TechLoaderService _techLoaderService // Loader kullan�m� i�indir.
@* Example Code *@
<h3>Test</h3>
<hr/>
<button class="btn btn-success" @onclick="@ExampleHttp">GET</button>
<hr/>
@* Toast Blazor component *@
<button class="btn btn-info" @onclick="@(() => _techToastService.ShowInfoToast())">Info Toast</button>
<button class="btn btn-success" @onclick="@(() => _techToastService.ShowSuccessToast())">Success Toast</button>
<button class="btn btn-warning" @onclick="@(() => _techToastService.ShowWarningToast())">Warning Toast</button>
<button class="btn btn-danger" @onclick="@(() => _techToastService.ShowErrorToast())">Error Toast</button>
<hr/>
@* Loader Test Button *@
<button class="btn btn-info" @onclick="@SimulateProcess">Loader Test</button>
@code {
async Task ExampleHttp()
{
var response = await _techHttpService.HttpClientAsync<object>(HttpClientMethod.Get, "",
new HttpOptions
{
action = "",
body = null,
});
// if (response.Successed)
// {
// _techToastService.ShowSuccessToast("�stek ba�ar�l�!");
// }
// else
// {
// _techToastService.ShowErrorToast("�stek ba�ar�s�z!");
// }
}
private async Task SimulateProcess()
{
_techLoaderService.Show();
await Task.Delay(1000); // �rnek i�lem
_techLoaderService.Hide();
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Blazored.LocalStorage (>= 4.5.0)
- Microsoft.AspNetCore.Components.Authorization (>= 8.0.21)
- Microsoft.AspNetCore.Components.Web (>= 8.0.21)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.