-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expand file tree
/
Copy pathdemo.html
More file actions
35 lines (32 loc) · 988 Bytes
/
demo.html
File metadata and controls
35 lines (32 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Datetime</title>
<link rel="stylesheet" href="../../../common.css" />
<script src="../../../common.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core@8/dist/ionic/ionic.esm.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core@8/css/ionic.bundle.css" />
<style>
/*
* Custom Datetime Header Part
* -------------------------------------------
*/
ion-datetime::part(datetime-header) {
background-color: orange;
}
</style>
</head>
<body>
<ion-app>
<ion-content>
<div class="container">
<ion-datetime presentation="date">
<span slot="title">Select Date</span>
</ion-datetime>
</div>
</ion-content>
</ion-app>
</body>
</html>