Closed luizbills closed 2 years ago
@luizbills this is why I'm here too. If I instantiate two TinyDatePickers via a class selector like
TinyDatePicker
const datePicker = TinyDatePicker(".datepick", { mode: 'dp-below', });
and attach a listener
datePicker.on("statechange", (e, picker) => { const state = picker.state, date = state.selectedDate; // I need to know which of two datepickers I am getting called from. });
Is there already a way to do this?
@luizbills this is why I'm here too. If I instantiate two
TinyDatePicker
s via a class selector likeand attach a listener
Is there already a way to do this?