Kebechet.Blazor.EventHandlers.ShortClick
2.0.0
Prefix Reserved
dotnet add package Kebechet.Blazor.EventHandlers.ShortClick --version 2.0.0
NuGet\Install-Package Kebechet.Blazor.EventHandlers.ShortClick -Version 2.0.0
<PackageReference Include="Kebechet.Blazor.EventHandlers.ShortClick" Version="2.0.0" />
<PackageVersion Include="Kebechet.Blazor.EventHandlers.ShortClick" Version="2.0.0" />
<PackageReference Include="Kebechet.Blazor.EventHandlers.ShortClick" />
paket add Kebechet.Blazor.EventHandlers.ShortClick --version 2.0.0
#r "nuget: Kebechet.Blazor.EventHandlers.ShortClick, 2.0.0"
#:package Kebechet.Blazor.EventHandlers.ShortClick@2.0.0
#addin nuget:?package=Kebechet.Blazor.EventHandlers.ShortClick&version=2.0.0
#tool nuget:?package=Kebechet.Blazor.EventHandlers.ShortClick&version=2.0.0
Blazor.EventHandlers.ShortClick
This package contains @onshortclick event handler.
Motivation: In order to unify development experience among multiple platforms I have decided to create onshortclick event for cases when you would like to use @onlongpress event handler. Because for example on Windows browser onclick event is triggered even after holding mousedown for more than 500ms. On the other side mobile devices behave differently. And onclick is not triggered after more than 400-500ms .
- usage:
<button @onshortclick="OnShortClick">Click me</button>
or the combination with @onlongpress:
<button @onlongpress="OnLongPress" @onshortclick="OnShortClick">Click or longpress me</button>
TODO
- minification
- build and publish pipeline
- tests
License
This repository is licensed with the MIT license.
| 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. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.6)
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 |
|---|---|---|
| 2.0.0 | 4,840 | 6/23/2024 |
| 1.0.2 | 1,033 | 10/8/2023 |
| 1.0.1 | 277 | 7/4/2023 |
| 1.0.0-preview3 | 248 | 5/29/2023 |
| 1.0.0-preview2 | 242 | 5/28/2023 |
| 1.0.0-preview1 | 239 | 5/28/2023 |
.NET8 bump