forked from webix-hub/components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.html
33 lines (31 loc) · 842 Bytes
/
sample.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
<!doctype html>
<html>
<head>
<script type="text/javascript" src="http://cdn.webix.io/edge/webix.js"></script>
<link rel="stylesheet" type="text/css" href="http://cdn.webix.io/edge/webix.css">
<script type="text/javascript" src="./ace.js"></script>
</head>
<body>
<script type="text/javascript">
//path from which autoload extra libraries
webix.codebase = "./";
webix.ui({
cols:[{
header:"JavaScript", body:{
view: "ace-editor",
theme: "monokai",
mode: "javascript",
value: 'function foo(items) {\n\tvar i;\n\tfor (i = 0; i < items.length; i++) {\n\t\talert("Ace Rocks " + items[i]);\n\t}\n}'
}
}, {
header:"Css", body:{
view: "ace-editor",
theme: "github",
mode: "css",
value: '.webix_icon{\n\tfont-size: 24px; \n}'
}
}]
});
</script>
</body>
</html>