forked from 0x2620/oxjs
add more examples
This commit is contained in:
parent
c72031bfdf
commit
c7e89cf73a
6 changed files with 128 additions and 0 deletions
7
examples/json_to_list/css/example.css
Normal file
7
examples/json_to_list/css/example.css
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
.OxTreeList {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
13
examples/json_to_list/index.html
Normal file
13
examples/json_to_list/index.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>JSON to List</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="shortcut icon" type="image/png" href="../../source/Ox.UI/png/icon16.png"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/example.css"/>
|
||||
<script type="text/javascript" src="../../dev/Ox.js"></script>
|
||||
<script type="text/javascript" src="js/example.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
13
examples/json_to_list/js/example.js
Normal file
13
examples/json_to_list/js/example.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
This is probably the easiest way of displaying a complex data structure...
|
||||
*/
|
||||
|
||||
Ox.load('UI', function() {
|
||||
|
||||
Ox.getJSON(Ox.PATH + '/Ox.Geo/json/Ox.Geo.json', function(data) {
|
||||
|
||||
Ox.TreeList({data: data}).appendTo(Ox.$body);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue