roojs-all.js
[roojs1] / examples / grid / edit-grid.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4 <title>Editor Grid Example</title>
5
6  
7      <link rel="stylesheet" type="text/css" href="../../css/roojs.css"/>
8     <link rel="stylesheet" type="text/css" href="../../css/xtheme-slate.css"/>
9
10      <script type="text/javascript" src="../../roojs-debug.js"></script>   
11     
12     <!-- for testing -->
13     <script type="text/javascript" src="../../Roo/grid/EditorGrid.js"></script>   
14      <script type="text/javascript" src="../../Roo/grid/GridDragZone.js"></script>   
15     
16      
17     <script type="text/javascript" src="edit-grid.js"></script>
18     <link rel="stylesheet" type="text/css" href="grid-examples.css" />
19     
20     
21
22 <!-- Common Styles for the examples -->
23 <link rel="stylesheet" type="text/css" href="../examples.css" />
24 </head>
25 <body>
26 <script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
27 <h1>Editor Grid Example</h1>
28 <p>This example shows how to create a grid with inline editing. For more details on this example, see <a href="http://www.jackslocum.com/yui/2006/09/10/adding-built-in-editing-support-to-the-yahoo-ui-extensions-grid/">the blog post</a>.</p>
29 <p>Note that the js is not minified so it is readable. See <a href="edit-grid.js">edit-grid.js</a>.</p>
30
31 <p>The data in the grid is loaded from <a href="plants.xml">plants.xml</a>.</p>
32
33 <!-- you must define the select box here, as the custom editor for the 'Light' column will require it -->
34 <select name="light" id="light" style="display: none;">
35         <option value="Shade">Shade</option>
36         <option value="Mostly Shady">Mostly Shady</option>
37         <option value="Sun or Shade">Sun or Shade</option>
38
39         <option value="Mostly Sunny">Mostly Sunny</option>
40
41         <option value="Sunny">Sunny</option>
42 </select>
43
44 <div id="grid-panel" style="width:600px;height:300px;">
45 <div id="editor-grid"></div>
46 </div>
47 </body>
48 </html>