feat(datetime): add firstDayOfWeek property (#23692)

resolves #23556

Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
This commit is contained in:
Hans Krywalsky
2021-08-17 16:45:39 +02:00
committed by GitHub
parent bc4e8267aa
commit ea348f005a
15 changed files with 186 additions and 15 deletions

View File

@@ -30,7 +30,10 @@
<ion-datetime size="cover"></ion-datetime>
<!-- Custom Hour Cycle -->
<ion-datetime hour-cycle="h23"></ion-datetime>
<ion-datetime hourCycle="h23"></ion-datetime>
<!-- Custom first day of week -->
<ion-datetime [firstDayOfWeek]="1"></ion-datetime>
<!-- Custom title -->
<ion-datetime>

View File

@@ -32,6 +32,9 @@
<!-- Custom Hour Cycle -->
<ion-datetime hour-cycle="h23"></ion-datetime>
<!-- Custom first day of week -->
<ion-datetime first-day-of-week="1"></ion-datetime>
<!-- Custom title -->
<ion-datetime>
<div slot="title">My Custom Title</div>

View File

@@ -58,6 +58,9 @@ export const DateTimeExamples: React.FC = () => {
{/* Custom Hour Cycle */}
<IonDatetime hourCycle="h23"></IonDatetime>
{/* Custom first day of week */}
<IonDatetime firstDayOfWeek={1}></IonDatetime>
{/* Custom title */}
<IonDatetime>

View File

@@ -56,6 +56,9 @@ export class DatetimeExample {
{/* Custom Hour Cycle */}
<ion-datetime hourCycle="h23"></ion-datetime>,
{/* Custom first day of week */}
<ion-datetime firstDayOfWeek={1}></ion-datetime>,
{/* Custom title */}
<ion-datetime>

View File

@@ -32,6 +32,9 @@
<!-- Custom Hour Cycle -->
<ion-datetime hour-cycle="h23"></ion-datetime>
<!-- Custom first day of week -->
<ion-datetime first-day-of-week="1"></ion-datetime>
<!-- Custom title -->
<ion-datetime>