Kebechet.Blazor.EventHandlers.LongPress 1.0.0-preview1

Prefix Reserved
This is a prerelease version of Kebechet.Blazor.EventHandlers.LongPress.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Kebechet.Blazor.EventHandlers.LongPress --version 1.0.0-preview1                
NuGet\Install-Package Kebechet.Blazor.EventHandlers.LongPress -Version 1.0.0-preview1                
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="Kebechet.Blazor.EventHandlers.LongPress" Version="1.0.0-preview1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kebechet.Blazor.EventHandlers.LongPress --version 1.0.0-preview1                
#r "nuget: Kebechet.Blazor.EventHandlers.LongPress, 1.0.0-preview1"                
#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 Kebechet.Blazor.EventHandlers.LongPress as a Cake Addin
#addin nuget:?package=Kebechet.Blazor.EventHandlers.LongPress&version=1.0.0-preview1&prerelease

// Install Kebechet.Blazor.EventHandlers.LongPress as a Cake Tool
#tool nuget:?package=Kebechet.Blazor.EventHandlers.LongPress&version=1.0.0-preview1&prerelease                

Blazor.EventHandlers.LongPress

This package contains @onlongpress event handler built from John Doherty's JS long-press

  • Before using the JS, I renamed triggered event name from long-press to longpress to be able to use it in Blazor.
  • I have also changed default show time from 1500ms to 500ms. In case you would like to specify your custom time, you can do so by adding tag attribute with your custom time like:
<div @onlongpress="LongPressHandler" data-long-press-delay="100"> 

TIP: For better usage experience put: @using Blazor.EventHandlers.LongPress into _Imports.razor file.

Used resources

License

This repository is licensed with the MIT license.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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.

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
1.2.0 3,370 6/23/2024
1.1.0 969 4/26/2024
1.0.1 1,115 7/4/2023
1.0.0-preview1 126 5/21/2023

First release of the package