{"id":18700408,"url":"https://github.com/chellappanrajan/ng-long-press","last_synced_at":"2026-05-05T04:06:13.834Z","repository":{"id":117832009,"uuid":"361779346","full_name":"ChellappanRajan/ng-long-press","owner":"ChellappanRajan","description":"Angular library for longpress event on desktop","archived":false,"fork":false,"pushed_at":"2022-05-26T03:44:13.000Z","size":220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T05:18:55.064Z","etag":null,"topics":["angular","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChellappanRajan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-26T14:25:12.000Z","updated_at":"2023-03-08T21:22:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"210de571-f304-442d-a725-19ca22fee6f1","html_url":"https://github.com/ChellappanRajan/ng-long-press","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChellappanRajan%2Fng-long-press","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChellappanRajan%2Fng-long-press/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChellappanRajan%2Fng-long-press/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChellappanRajan%2Fng-long-press/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChellappanRajan","download_url":"https://codeload.github.com/ChellappanRajan/ng-long-press/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565653,"owners_count":19660154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","typescript"],"created_at":"2024-11-07T11:36:56.371Z","updated_at":"2025-11-08T22:30:25.055Z","avatar_url":"https://github.com/ChellappanRajan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgLongPress\n\nA Library for handle long press on desktop.\n\n## Installation\n\n### Import the library\n\n\n```typescript\nimport { NgLongPressModule } from 'ng-long-press'; \n\n@NgModule({\n  declarations: [ AppComponent ],\n  imports: [ NgLongPressModule ] \n  bootstrap: [ AppComponent ]\n})\nexport class AppModule {\n}\n```\nAfter importing the NgLongPressModule bind the longPress event on the template like this.\n```html\n  \u003cdiv longPressDuration=\"200\" (longPress)=\"longPress()\"\u003e\n   LongPress\n  \u003c/div\u003e\n```\n\nBy default longPress event will be fired on after 1000ms, but we can change this behaviour with longPressDuration input property\n\n## API\n\n\n| option | bind  |  type  |   default    | description  |\n|:-------------------|:--------:|:------:|:------------:|:-------------------------------------------------------------------------------------------------|    \n| longPressDuration      | `Input()`  | `number`    | `1000` |  the minimum delay to fire  longPress event\n\n\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via a platform of your choice.\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchellappanrajan%2Fng-long-press","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchellappanrajan%2Fng-long-press","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchellappanrajan%2Fng-long-press/lists"}