/ext-4.1.0_b3/docs/extjs/examples/videos/tree.html
HTML | 36 lines | 30 code | 5 blank | 1 comment | 0 complexity | 0c6eeb548c0761bfd003d7a6feb8a698 MD5 | raw file
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4 <title>Grids</title>
5 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
6
7 <!-- GC -->
8
9 <script type="text/javascript" src="../../ext-all.js"></script>
10</head>
11<body>
12 <script type="text/javascript" charset="utf-8">
13 Ext.require();
14
15 Ext.onReady(function() {
16 Ext.create('Ext.tree.Panel', {
17 renderTo: Ext.getBody(),
18 width: 400,
19 height: 600,
20 title: 'Categories',
21 rootVisible: false, //IT'S UGLY THAT I HAVE TO DO THIS
22
23 //ALSO, INCREDIBLY, IF I DELETE THE ROOTVISIBLE LINE THIS DOESN'T WORK AT ALL :/
24
25 store: {
26 autoLoad: true,
27 proxy: {
28 type: 'ajax',
29 url: 'tree.json'
30 }
31 }
32 });
33 });
34 </script>
35</body>
36</html>