@baianat/datepicker

0.0.1 • Public • Published

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

MIT

Copyright (c) 2017 Baianat

Readme

Keywords

none

Package Sidebar

Install

npm i @baianat/datepicker

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • baianaters