forked from DevExpress/obsolete-devextreme-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (30 loc) · 1005 Bytes
/
index.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>
<title>DevExtreme with RequireJS and jQuery example</title>
<link rel="stylesheet" type="text/css" href="devextreme_amd/dist/css/dx.common.css" />
<link rel="stylesheet" type="text/css" href="devextreme_amd/dist/css/dx.light.css" />
<script src="node_modules/requirejs/require.js"></script>
</head>
<body>
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%)">
<div id="myButton"></div>
</div>
<script>
require.config({
paths: {
"jquery": "node_modules/jquery/dist/jquery",
"devextreme": "devextreme_amd"
}
});
require(["jquery", "devextreme/ui/dialog", "devextreme/ui/button", "devextreme/integration/jquery"], function($, dialog) {
$("#myButton").dxButton({
text: "Say 'Hello world'",
onClick: function() {
dialog.alert('Hello world!', '', false);
}
});
});
</script>
</body>
</html>