-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlarkDialog.html
More file actions
148 lines (122 loc) · 5.31 KB
/
larkDialog.html
File metadata and controls
148 lines (122 loc) · 5.31 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gateway.Bookmarks</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link rel="stylesheet" href="./css/larkRoot.css">
<link rel="stylesheet" href="./css/larkResource.css">
<link rel="stylesheet" href="./css/larkFW.css">
<link rel="stylesheet" href="./css/larkCanvas.css">
<link rel="stylesheet" href="./css/larkUtility.css">
<link rel="stylesheet" href="./css/contextMenu.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
</head>
<body>
<button id="idBTNShowDialog">show Dialog</button>
<script>
let tagDlg = null ;
function demoCallback(jsonFormData){
console.log(jsonFormData) ;
let jsonResult={} ;
return jsonResult ;
}
//idBTNHomeScreen
document.querySelector("#idBTNShowDialog").addEventListener('click',async (event)=>{
//document.querySelector('#idDlgWorkbench').show() ;
let jsonDialog={
cssContainer:'#idDlgContainer',
theme:{
backgroundColor:'aqua',
border:'blue',
font:'asap-condensed-regular'
},
layout:{
width:800,
height:400
},
content:{
title:'Lark Event management',
fields:[
{
label:'about:',
content:{
type:'input.Text',
default:'about what?',//jsonEvent.title,//'about what?',
name:'event'
}
},{
label:'start date:',
content:{
type:'input.Text',
default:'info.dateStr',
name:'startDate'
}
},{
label:'end date:',
content:{
type:'input.Text',
default:'jsonEnd.date',//info.dateStr,
name:'endDate'
}
},
{
label:'start time:',
content:{
type:'input.Text',
default:'jsonStart.time',//'10:00',
name:'startTime'
}
},{
label:'end time:',
content:{
type:'input.Text',
default:'jsonEnd.time',//'12:00',
name:'endTime'
}
},{
label:'web site?',
content:{
type:'input.Text',
default:'jsonEvent.url',//'https://www.google.com',
name:'url2Go'
}
},{
content:{
type:'input.Button',
name:'BTN_GoURL',
title:'visit URL',
onClick:(jsonDialog)=>{
}
}
},{
content:{
type:'input.Button',
name:'BTN_DoneEvent',
title:'Remove Event',
onClick:(jsonDialog)=>{
console.log(`BTN_DoneEvent ${jsonDialog}`) ;
}
}
}
]
},
callback:{
commitFunc:'_callback_EventClick'
},
callParameters:{
event:{}
}
} ;
createLarkDialog(jsonDialog) ;
}) ;
function _callback_EventClick()
{
}
document.addEventListener('DOMContentLoaded',async (event)=>{}) ;
</script>
<script src="./js/wclarkDialogsV2.js"></script>
</body>
</html>