@baianat/datepicker
v0.0.1
Published
ES6 date picker extension for Base framework.
Downloads
4
Readme
Datepicker(WIP)
ES6 date picker extension for Base framework.
Getting Started
Installation
You can install datepicker as part of base.extensions.
npm install @baianat/base.extensions
# or using yarn
yarn add @baianat/base.extensions
If you want the standalone version.
npm install @baianat/datepicker
yarn add @baianat/datepicker
Include necessary files
<head>
<link rel="stylesheet" href="dist/css/datepicker.css">
</head>
<body>
...
<script type="text/javascript" src="dist/js/datepicker.js"></script>
</body>
HTML Layout
You need an input element to output the date value on it.
<input id="myDate">
Create the Datepicker
You now need to create a new Datepicker
instance.
const myDate = new Datepicker('#myDate', { settings });
| OPTION | DEFAULT | DESCRIPTION |
| ------ | ------- | ----------- |
| dateFormat
| 'YYYY-MM-DD' | string that represents the output date format |
License
Copyright (c) 2017 Baianat