vue-form-generator: dateTimePicker not worked!

Error text "Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!" What can I do to work? Vue 2.0

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

The error seems pretty straightforward. Add a script tag with the bootstrap datepicker. https://eonasdan.github.io/bootstrap-datetimepicker/Installing/#manual Since this plugin is dependent on jquery and the plugin itself it checks if the jquery and datetimepicker are in the window object if(window.$ && window.$.fn.datetimepicker) Just make sure you have the plugin initialized according to it’s docs. As long as you pass over that part it should work fine. PS: If you don’t want to depend on jquery you can have a look at this table https://icebob.gitbooks.io/vueformgenerator/content/fields/optional_fields.html and use the vanilla alternative or make a field yourself https://icebob.gitbooks.io/vueformgenerator/content/fields/custom_fields.html.

@bhupender005 Sorry, but this is out of the scope of this plugin and the use of the issue tracker. If you want to find help you can ask any question you like on the official Vuejs Forum or the Vuejs Gitter channel. Of course, if you have an issue or question directly related to this plugin and it’s use feel free to open another issue. Good luck !

@bhupender005 I don’t think you can use these non-vue modules with Vue.use. Check the dev example in dev folder how we can use them.