-
Notifications
You must be signed in to change notification settings - Fork 27
Installation
Dionlee Uy edited this page Oct 2, 2020
·
2 revisions
Install via npm:
npm i @dmuy/timepicker
Include in your app
import '@dmuy/timepicker/dist/mdtimepicker.css'
import mdtimepicker from '@dmuy/timepicker'Older version (with jQuery dependency)
Use the following if you don't want to host the js and css files:
https://unpkg.com/@dmuy/timepicker@{version}/dist/mdtimepicker.css
https://unpkg.com/@dmuy/timepicker@{version}/dist/mdtimepicker.js
https://cdn.jsdelivr.net/gh/dmuy/MDTimePicker@{version}/dist/mdtimepicker.css
https://cdn.jsdelivr.net/gh/dmuy/MDTimePicker@{version}/dist/mdtimepicker.js
For production, use the minified version by adding .min to the file name (i.e. mdtimepicker.min.js)
Note: Replace {version} with the version you want to use.
Copy mdtimepicker.css and mdtimepicker.js (or the minified versions *.min.js and *.min.css) in the dist folder and include in your app:
<link rel="stylesheet" type="text/css" href="{path-to}/mdtimepicker.css">
<script type="text/javascript" src="{path-to}/mdtimepicker.js"></script>Note: Replace {path-to} with the absolute or relative path to where you copied the css and js files.