2.14.3 • Published 9 months ago
hello-week v2.14.3
Quick start
Installation
npm install hello-week --save
yarn add hello-week
Including Files:
CSS
<link rel="stylesheet" type="text/css" href="hello.week.min.css" />
<link rel="stylesheet" type="text/css" href="hello.week.theme.min.css" />
JS
<script type="module">
import HelloWeek from 'hello.week.esm.js';
new HelloWeek();
</script>
HTML Markup
<div class="hello-week">
<div class="navigation">
<button class="prev">Prev</button>
<div class="period"></div>
<button class="next">Next</button>
</div>
<div class="week"></div>
<div class="month"></div>
</div>
Options
HelloWeek comes with a few (optional) settings that you can change by passing an object as an argument. Default values are presented below.
new HelloWeek({
selector: '.hello-week',
lang: 'en',
langFolder: './dist/langs/',
format: 'DD/MM/YYYY',
weekShort: true,
monthShort: false,
multiplePick: false,
defaultDate: null,
minDate: null,
maxDate: null,
disabledDaysOfWeek: null,
disableDates: null,
weekStart: 0, // week start on Sunday
timezoneOffset: new Date().getTimezoneOffset(),
daysSelected: null,
daysHighlight: null,
disablePastDays: false,
todayHighlight: true,
range: false,
locked: false,
rtl: false,
nav: ['◀', '▶'],
onClear: () => {},
onLoad: () => {},
onNavigation: () => {},
onSelect: () => {},
beforeCreateDay: (node) => {},
});
Useful links
Supported Browsers:
- Chrome 49
- Firefox 31
- Opera 36
- Safari 9.3
- Edge 17
- iOS Safari 6.0
License
Hello Week is open-sourced software licensed under the MIT license
2.14.3
9 months ago
2.14.2
2 years ago
2.13.1
2 years ago
2.13.0
3 years ago
2.12.0-rc
3 years ago
3.0.4-beta
5 years ago
3.0.3-beta
5 years ago
3.0.2-beta
5 years ago
3.0.1-beta
5 years ago
3.0.3-alpha
5 years ago
3.0.4-alpha
5 years ago
3.0.2-alpha
5 years ago
3.0.1-alpha
5 years ago
3.0.0-alpha
5 years ago
2.10.3
6 years ago
2.10.2
6 years ago
2.10.1
6 years ago
2.10.0
6 years ago
2.9.1
6 years ago
2.9.0
6 years ago
2.6.0
6 years ago
2.5.0
6 years ago
2.4.0
6 years ago
2.3.0
6 years ago
2.2.0
6 years ago
2.1.0
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.4.1
7 years ago
1.4.0
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.3.0
7 years ago
1.2.0
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago
0.1.0
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago