0.0.1 • Published 7 years ago

@baianat/datepicker v0.0.1

Weekly downloads
4
License
-
Repository
-
Last release
7 years ago

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 });
OPTIONDEFAULTDESCRIPTION
dateFormat'YYYY-MM-DD'string that represents the output date format

License

MIT

Copyright (c) 2017 Baianat

0.0.1

7 years ago