html-duration-picker.js | Turn an HTML input box to a duration picker , without jQuery | Plugin library
kandi X-RAY | html-duration-picker.js Summary
kandi X-RAY | html-duration-picker.js Summary
Turn an HTML input box to a duration picker, without jQuery
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of html-duration-picker.js
html-duration-picker.js Key Features
html-duration-picker.js Examples and Code Snippets
npm i html-duration-picker
import * as HtmlDurationPicker from "html-duration-picker";
mounted() { HtmlDurationPicker.init() }
Community Discussions
Trending Discussions on html-duration-picker.js
QUESTION
I'm creating a Bootstrap Vue application (built with Vue CLI), and there's a Javascript library I want to be able to utilize: https://nadchif.github.io/html-duration-picker.js/. I tried putting the file in /assets and then using import in the script portion of App.vue (import './assets/html-duration-picker.min'
), but I have not been able to get the script to work, not sure why (nothing happens, no duration picker shows). As an alternative, I thought I could maybe simply load the library in the traditional way in the head of index.html. But I'm not clear what the src URL should be for a file in the assets directory. Or should it be in the assets/public directory?
ANSWER
Answered 2020-Dec-30 at 18:06Honestly, you might as well use the npm package, if you are using Vue CLI, to save yourself a lot of trouble:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install html-duration-picker.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page