-
Notifications
You must be signed in to change notification settings - Fork 58
/
template_es6module.html
38 lines (34 loc) · 1.07 KB
/
template_es6module.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jsPanel</title>
<!-- loading jsPanel css -->
<link rel="stylesheet" href="jspanel.css">
</head>
<body>
<!-- Your HTML goes here -->
<script type="module">
// import main js
import { jsPanel } from './jspanel.min.js';
// import extensions as needed
import './extensions/hint/jspanel.hint.min.js';
import './extensions/modal/jspanel.modal.min.js';
import './extensions/contextmenu/jspanel.contextmenu.min.js';
import './extensions/tooltip/jspanel.tooltip.min.js';
import './extensions/dock/jspanel.dock.min.js';
import './extensions/layout/jspanel.layout.min.js';
// create a demo jsPanel
jsPanel.create({
headerTitle: 'demo panel',
theme: 'dark',
content: '<p>A simple demo panel.</p>',
callback: function() {
this.content.style.padding = '10px';
}
});
</script>
</body>
</html>