<html>
<head>
</head>
<body>
<div id="app">
<h-date-picker></h-date-picker>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="haroru-datepicker.min.js"></script>
<script type="text/javascript">
Vue.component('h-date-picker', HaroruDatePicker)
var app = new Vue({
el: '#app',
data: {
}
})
</script>
</body>
</html>
Prop | Description | Type | Default |
---|---|---|---|
format | Any format supported by moment | String | 'DD/MM/YYYY' |
initialday | Sets the first day of the week 0-Sunday 1-Monday... | Number | 0 |
locale | Any locale admited by moment | String | "en" |
weekShow | Allows to show the week number | Boolean | false |
name | Name for the input | String | "date" |
value(v-model) | Value to set/return date | String | Today |
npm i
npm run dev
npm i
npm run build