docs(datetime): update locale month/day names

This commit is contained in:
Adam Bradley
2016-05-17 08:55:14 -05:00
parent 8b09733124
commit 47afd9477b
2 changed files with 12 additions and 11 deletions

View File

@@ -213,13 +213,11 @@ const DATETIME_VALUE_ACCESSOR = new Provider(
* ```html
* <ion-item>
* <ion-label>Período</ion-label>
* <ion-datetime displayFormat="DDDD MMM D, YYYY"
* [(ngModel)]="myDate"
* monthNames="[janeiro, fevereiro, mar\u00e7o, ... ]"
* monthShortNames="[jan, fev, mar, ... ]"
* dayNames="[domingo, segunda-feira, ter\u00e7a-feira, ... ]"
* dayShortNames="[dom, seg, ter, ... ]"
* ></ion-datetime>
* <ion-datetime displayFormat="DDDD MMM D, YYYY" [(ngModel)]="myDate"
* monthNames="janeiro, fevereiro, mar\u00e7o, ..."
* monthShortNames="jan, fev, mar, ..."
* dayNames="domingo, segunda-feira, ter\u00e7a-feira, ..."
* dayShortNames="dom, seg, ter, ..."></ion-datetime>
* </ion-item>
* ```
*

View File

@@ -15,13 +15,16 @@
</ion-item>
<ion-item>
<ion-label>MMM DD, YYYY</ion-label>
<ion-datetime displayFormat="MMM DD, YYYY" min="1994-03-14" max="2012-12-09" [(ngModel)]="firefoxReleased" class="e2eOpenMMDDYYYY"></ion-datetime>
<ion-label>MM/DD/YYYY</ion-label>
<ion-datetime displayFormat="MM/DD/YYYY" min="1994-03-14" max="2012-12-09" [(ngModel)]="firefoxReleased" class="e2eOpenMMDDYYYY"></ion-datetime>
</ion-item>
<ion-item>
<ion-label>DDD. MM/DD/YY (locale day)</ion-label>
<ion-datetime displayFormat="DDD. MM/DD/YY" min="1990-02" max="2000" [dayShortNames]="customShortDay" [(ngModel)]="operaReleased"></ion-datetime>
<ion-label>DDD. MMM DD, YY (custom locale)</ion-label>
<ion-datetime [(ngModel)]="operaReleased" min="1990-02" max="2000"
displayFormat="DDD. MMM DD, YY"
monthShortNames="jan, feb, mar, apr, mai, jun, jul, aug, sep, okt, nov, des"
[dayShortNames]="customShortDay"></ion-datetime>
</ion-item>
<ion-item>