Sha256: 027acedd3aae95a9eb8ce7365763c4cf0a415a418db43f5b6c6596abc6b40e76
Contents?: true
Size: 739 Bytes
Versions: 71
Compression:
Stored size: 739 Bytes
Contents
Playbook's date picker is built using [flatpickr](https://flatpickr.js.org/), a vanilla js library. Common date picker use cases and features have been adapted into simple prop based configuration detailed in the docs below. You can implement additional features and functionality by accessing a flatpickr instance directly. This is done with the following code. `const fpInstance = document.querySelector('#pickerId')._flatpickr` `pickerId` is a prop passed to the date picker kit. Flatpickr uses this id to target an input and attach a flatpickr instance to that input. To learn more [visit flatpickr's docs](https://flatpickr.js.org/instance-methods-properties-elements/) or see the hook doc section below for an applied example.
Version data entries
71 entries across 71 versions & 1 rubygems