Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using bootstrap-datetime picker with Vuejs 2

I wanted to integrate Datetime picker with vue 2 or webpack. I tried searching but couldn't find related article. Have anyone integrated the Datetime picker with Vue2 or webpack, is there any sample code available for reference? Any help would be highly appreciated.

Thanks.

like image 228
Amit Sharma Avatar asked Feb 18 '26 23:02

Amit Sharma


1 Answers

You can sure find some issues on the subject by just Googling vuejs bootstrap datetimepicker, but honestly I'm not sure VueJS is well tailored to work with Bootstrap, that already have its own (jQuery) logic.

There is the VueStrap project, but it works with Vue1, see their datepicker. This fork is supposed to support Vue2, but I can't ensure its quality. However it could gives you some inspiration about how to integrate your datepicker if you want to do it yourself, see the datepicker code.

If you don't mind using another datepicker, I would suggest some others that are trivial to integrate to your project:

  • Bulma date(time)picker from vue-bulma → Demo

  • Element datetimepicker → Github of the project

like image 73
FitzFish Avatar answered Feb 21 '26 13:02

FitzFish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!