-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestDlg.html
More file actions
116 lines (94 loc) · 2.71 KB
/
testDlg.html
File metadata and controls
116 lines (94 loc) · 2.71 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>larkDialog</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.15/index.global.min.js"></script>
<script src="https://unpkg.com/popper.js/dist/umd/popper.min.js"></script>
<script src="https://unpkg.com/tooltip.js/dist/umd/tooltip.min.js"></script>
<link rel="stylesheet" href="./css/larkFont.css">
<style>
</style>
<style>
html, body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
font-size: 14px;
overflow-y: hidden;
overflow-x: hidden;
}
/*
dialog{
border-color: blue;
}
*/
</style>
</head>
<body>
<button id='idBTN'>Button</button>
<div id="idDlgContainer" class="asap-condensed-regular"></div>
<script>
function callback_Demo(jsonFormData){
console.log(jsonFormData) ;
}
document.querySelector('#idBTN').addEventListener('click',(event)=>{
let jsonDialog={
cssContainer:'#idDlgContainer',
theme:{
backgroundColor:'aqua',
border:'blue',
font:'asap-condensed-regular'
},
layout:{
width:600,
height:250
},
content:{
title:'Bookmarking website',
fields:[
{
label:'url',
content:{
type:'input.Text',
default:'url of the website',
name:'url'
}
},{
label:'title',
content:{
type:'input.Text',
default:'title for the page',
name:'title'
}
},{
label:'email@',
content:{
type:'input.Text',
default:'contact email@',
name:'email'
}
},{
label:'Phone',
content:{
type:'input.Text',
default:'phone no#',
name:'phone'
}
}
]
},
callback:{
commitFunc:'callback_Demo'
}
} ;
createLarkDialog(jsonDialog) ;
}) ;
document.addEventListener('DOMContentLoaded', function() {
});
</script>
<script src="./js/larkDialogs.js"></script>
</body>
</html>