Closed adrienpoly closed 5 years ago
as per #35
This PR introduces a new way to initialize the datepicker. It is now possible to specify a custom element within the controller scope to attach the datepicker to.
There is a new reserved Stimulus Target instance for this.
instance
example
<div data-controller="flatpickr" > <input data-target="flatpickr.instance"> </div>
as per #35
This PR introduces a new way to initialize the datepicker. It is now possible to specify a custom element within the controller scope to attach the datepicker to.
There is a new reserved Stimulus Target
instance
for this.example