@ionic2-extra/calendar v0.2.3
ion-calendar
ion-calendar is a simple calendar widget that allows users to
select pick single date or date ranges (weeks, months, years)
Notes
The ion-calendar component fully support two-way binding of
ngModel
Usage
Basic Usage
<ion-calendar (change)="onPeriodChange($event)"></ion-calendar>Usage within Forms
ion-calendar supports [(ngModel)] and ngControl for use within
forms.
<form (submit)="onSubmit()">
<!-- other fields -->
<div>
<ion-calendar [(ngModel)]="datePeriod"></ion-calendar>
</div>
</form>API Summary
Properties:
| Name | Type | Description |
|---|---|---|
selection-mode | "day" | "week" | "month" | "year" | The range of dates selected when user clicks on a date |
view-date | Date | The initial date displayed. Default to current date |
view-mode | "month" | "year" | "decade" | The initial view mode. Default to "month" |
start-of-week-day | "monday" | "tuesday" | "wednesday" | "thursday" | "friday"| "satudary" | "sunday" | The first day of week. Default to "monday" |
disabled | boolean | Whether or not the button is disabled |
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago