2.13.0 • Published 1 year ago
hello-week v2.13.0
Quick start
Installation
npm install hello-week --save
yarn add hello-week
Including files:
<link rel="stylesheet" type="text/css" href="hello.week.min.css" />
<link rel="stylesheet" type="text/css" href="hello.week.theme.min.css" />
<script type="text/javascript" src="hello.week.min.js"></script>
<script>
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,
todayHighlight: true,
disablePastDays: false,
disableDaysOfWeek: null,
disableDates: null,
weekStart: 0, // week start on Sunday
daysHighlight: null,
daysSelected: null,
range: false,
rtl: false,
locked: false,
minDate: null,
maxDate: null,
nav: ['◀', '▶'],
onLoad: () => { /** callback function */ },
onChange: () => { /** callback function */ },
onSelect: () => { /** callback function */ },
onClear: () => { /** callback function */ }
});
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.2
1 year ago
2.13.1
1 year ago
2.13.0
2 years ago
2.12.0-rc
2 years ago
3.0.4-beta
4 years ago
3.0.3-beta
4 years ago
3.0.2-beta
4 years ago
3.0.1-beta
4 years ago
3.0.3-alpha
4 years ago
3.0.4-alpha
4 years ago
3.0.2-alpha
4 years ago
3.0.1-alpha
4 years ago
3.0.0-alpha
4 years ago
2.10.3
5 years ago
2.10.2
5 years ago
2.10.1
5 years ago
2.10.0
5 years ago
2.9.1
5 years ago
2.9.0
5 years ago
2.6.0
5 years ago
2.5.0
5 years ago
2.4.0
5 years ago
2.3.0
5 years ago
2.2.0
5 years ago
2.1.0
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago
0.1.0
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago