Sha256: 2defa0d60fe5577a77b7f2f1e45307518c36ee6573813062ec9863d33391247a
Contents?: true
Size: 563 Bytes
Versions: 20
Compression:
Stored size: 563 Bytes
Contents
import flatpickr from 'flatpickr' import BaseFilterController from './filter_controller' export default class extends BaseFilterController { static targets = ['input'] static values = { class: String, pickerOptions: Object, } getFilterValue() { return this.inputTarget.value } getFilterClass() { return this.classValue } connect() { this.initFlatpickr() } initFlatpickr() { this.pickerInstance = flatpickr(this.inputTarget, this.pickerOptionsValue) } clear() { this.inputTarget._flatpickr.clear() } }
Version data entries
20 entries across 20 versions & 1 rubygems