pglejzer / timepicker-ui

timepicker-ui is an easy library with timepicker. Fully wrote with TypeScript. This library is based on Material Design from Google.
MIT License
64 stars 19 forks source link

Enable multiple instance creation #6

Closed manfredjb closed 2 years ago

manfredjb commented 2 years ago

When you have a form with multiple inputs in time format would be if new TimepickerUI(DOMElement, options); initialize all of them at the same time. At the moment, it only initialize the first input of querySelector result.

pglejzer commented 2 years ago

I just wondering why do you need multiple inputs in time format to initialize in the same time? You can add more instances to create a new pickers

pglejzer commented 2 years ago

I added new version with methods update and destroy. Maybe this is something what you need. I will close this issue, if you have more question or that these methods weren't what you expected let me know.