{"id":28089201,"url":"https://github.com/jcsmorais/shortcut-buttons-flatpickr","last_synced_at":"2025-05-13T12:54:49.287Z","repository":{"id":31977201,"uuid":"130646163","full_name":"jcsmorais/shortcut-buttons-flatpickr","owner":"jcsmorais","description":"Flatpickr's plugin that provides users an alternative way to interact with the datetime picker.","archived":false,"fork":false,"pushed_at":"2023-09-11T06:14:29.000Z","size":1014,"stargazers_count":26,"open_issues_count":9,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T17:14:41.814Z","etag":null,"topics":["buttons","calendar","flatpickr","javascript","plugin","shortcut"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcsmorais.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-04-23T05:49:30.000Z","updated_at":"2023-10-09T10:56:28.000Z","dependencies_parsed_at":"2024-06-18T15:19:05.521Z","dependency_job_id":"95bde52e-2c8b-4c67-9cda-9a43e342b061","html_url":"https://github.com/jcsmorais/shortcut-buttons-flatpickr","commit_stats":{"total_commits":79,"total_committers":5,"mean_commits":15.8,"dds":0.05063291139240511,"last_synced_commit":"220b6ff7a58dcf90c6ca3a73ed7ce90d4b4bc1f4"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsmorais%2Fshortcut-buttons-flatpickr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsmorais%2Fshortcut-buttons-flatpickr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsmorais%2Fshortcut-buttons-flatpickr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsmorais%2Fshortcut-buttons-flatpickr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcsmorais","download_url":"https://codeload.github.com/jcsmorais/shortcut-buttons-flatpickr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948328,"owners_count":21988953,"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":["buttons","calendar","flatpickr","javascript","plugin","shortcut"],"created_at":"2025-05-13T12:54:48.688Z","updated_at":"2025-05-13T12:54:49.275Z","avatar_url":"https://github.com/jcsmorais.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shortcut buttons\n[![CircleCI](https://circleci.com/gh/jcsmorais/shortcut-buttons-flatpickr/tree/master.svg?style=shield)](https://circleci.com/gh/jcsmorais/shortcut-buttons-flatpickr/tree/master)\n[![Coverage Status](https://coveralls.io/repos/github/jcsmorais/shortcut-buttons-flatpickr/badge.svg?branch=master)](https://coveralls.io/github/jcsmorais/shortcut-buttons-flatpickr?branch=master)\n[![npm version](https://badge.fury.io/js/shortcut-buttons-flatpickr.svg)](https://badge.fury.io/js/shortcut-buttons-flatpickr)\n[![flatpickr](https://img.shields.io/badge/flatpickr-4.6.3-brightgreen.svg)](https://flatpickr.js.org/)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/jcsmorais/shortcut-buttons-flatpickr/master/LICENSE)\n[![](https://data.jsdelivr.com/v1/package/npm/shortcut-buttons-flatpickr/badge)](https://www.jsdelivr.com/package/npm/shortcut-buttons-flatpickr)\n\nShortcut buttons is a plugin for [flatpickr](https://flatpickr.js.org/) that provides users an alternative way to interact with the datetime picker.\n\n![material_blue](https://user-images.githubusercontent.com/712667/39291812-091dd72c-48e9-11e8-9d3f-1eefd57be20a.png)\n![material_green](https://user-images.githubusercontent.com/712667/39291811-090776bc-48e9-11e8-9a79-deed7306be37.png)\n![confetti](https://user-images.githubusercontent.com/712667/39291814-0938bbc8-48e9-11e8-81b1-14a05f6fcd99.png)\n![material_red](https://user-images.githubusercontent.com/712667/39291810-08ee5042-48e9-11e8-8f82-25eb76ce1068.png)\n![light](https://user-images.githubusercontent.com/712667/39291809-08ba48d8-48e9-11e8-942d-33f68742f94f.png)\n![dark](https://user-images.githubusercontent.com/712667/39291815-094fdbbe-48e9-11e8-9d54-f822d299317c.png)\n\n# Motivation\nShortcut buttons development has been motivated by the need of having a fast, flexible and seemless alternative way for users to select specific date(s) without being forced to navigate through their calendars and individually select those date(s).\n\n# Installation\nInstalling as a module:\n```bash\nyarn add shortcut-buttons-flatpickr\n```\n\nInstalling on non-module environments:\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/shortcut-buttons-flatpickr@0.1.0/dist/themes/light.min.css\"\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/shortcut-buttons-flatpickr@0.1.0/dist/shortcut-buttons-flatpickr.min.js\"\u003e\u003c/script\u003e\n```\n\n# API\n| Params                | Type                     | Description                                                                                                                                                                      |\n|-----------------------|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `button`              | `Object`, `Object[]`     | Button(s).                                                                                                                                                                       |\n| `[button.attributes]` | `Object`                 | Button's attributes.\u003cbr/\u003eSupported attributes: `accesskey`, `aria-label`, `class` and `tabindex`.                                                                                                     |\n| `button.label`        | `string`                 | Button's label.                                                                                                                                                                  |\n| `[label]`             | `string`                 | Label including a word/sentence stating that the user can use the calendar or one of the buttons.                                                                                |\n| `onClick`             | `Function`, `Function[]` | Callback(s) invoked when plugin's buttons are clicked. Each callback is fed with two parameters:\u003cbr/\u003e`index` - the index of the clicked button.\u003cbr/\u003e`fp` - flatpickr's instance. |\n| `[theme]`             | `string`                 | Flatpickr's theme, defaults to `light` if none supplied.                                                                                                                         |\n\n# Usage Examples\n* [Beginning Of Time](http://bit.ly/2jjcQK0)\n* [Clear Date Selection](http://bit.ly/2wrPyYp)\n* [Quick Month Selection](http://bit.ly/2KdleFS)\n* [US Holidays Navigator](http://bit.ly/2raWK9D)\n* [Yesterday, Today and Tomorrow](http://bit.ly/2KrWMC0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcsmorais%2Fshortcut-buttons-flatpickr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcsmorais%2Fshortcut-buttons-flatpickr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcsmorais%2Fshortcut-buttons-flatpickr/lists"}