BcdLib.PullComponent
0.1.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 BcdLib.PullComponent --version 0.1.0
NuGet\Install-Package BcdLib.PullComponent -Version 0.1.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="BcdLib.PullComponent" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BcdLib.PullComponent --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BcdLib.PullComponent, 0.1.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 BcdLib.PullComponent as a Cake Addin #addin nuget:?package=BcdLib.PullComponent&version=0.1.0 // Install BcdLib.PullComponent as a Cake Tool #tool nuget:?package=BcdLib.PullComponent&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PullComponent
A blazor pull refresh component library for maui.
1. Usage
add service
builder.Services.AddBcdLibPullComponent();
import namespace:
using BcdLib.Components;
using
PullDown
component
<PullDown OnRefreshing="OnRefresh">
// ChildContent ....
</PullDown>
@code {
public async Task OnRefresh()
{
await Task.Delay(1000);
}
}
Sample to see sample\PullSample\Pages\PullDownIFrame.razor
.
2. Gif
3. Design
3.1.Pull Status
PullStatus enum has 5 status:
enum value | describe |
---|---|
Awaiting | Pull down has not started yet. |
Pulling | Pull down has started, but it has not reached a certain height (see MaxDistance paramter in 3.2.Api). |
Loosing | Pull down has started and reached a certain height. |
Loading | After reaching the Loosing state, and finger has been release from the screen. The OnRefreshing event will be invoked. |
Completed | refresh completed. |
State transition of PullStatus:
Awaiting --> Pulling --> Loosing --> Loading --> Completed --> Awaiting
Awaiting --> Pulling --> Awaiting
3.2.Api
paramter | type | default | remark |
---|---|---|---|
OnRefreshing | EventCallback | -- | Pull down for callback when refreshing. |
PullingTip | RenderFragment | 下拉刷新 | Dom displayed when in PullStatus.Pulling |
LoosingTip | RenderFragment | 释放更新 | Dom displayed when in PullStatus.Loosing |
LoadingTip | RenderFragment | 更新中... | Dom displayed when in PullStatus.Loading |
CompletedTip | RenderFragment | 更新完成 | Dom displayed when in PullStatus.Completed |
MaxDistance | int | 50 | Unit px.<br />To modify this value, you need to define the css variable --pull-refresh-head-height too |
4.Developer
zxyao
5.License
MIT
Product | Versions 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.
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.