mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(datetime): add firstDayOfWeek property (#23692)
resolves #23556 Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user