40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<title>Editor Grid Example</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
|
|
|
|
<!-- GC --> <!-- LIBS --> <script type="text/javascript" src="../../adapter/yui/yui-utilities.js"></script> <script type="text/javascript" src="../../adapter/yui/ext-yui-adapter.js"></script> <!-- ENDLIBS -->
|
|
<script type="text/javascript" src="../../ext-all.js"></script>
|
|
|
|
<script type="text/javascript" src="edit-grid.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="grid-examples.css" />
|
|
|
|
<!-- Common Styles for the examples -->
|
|
<link rel="stylesheet" type="text/css" href="../examples.css" />
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
|
|
<h1>Editor Grid Example</h1>
|
|
<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>
|
|
<p>Note that the js is not minified so it is readable. See <a href="edit-grid.js">edit-grid.js</a>.</p>
|
|
|
|
<p>The data in the grid is loaded from <a href="plants.xml">plants.xml</a>.</p>
|
|
|
|
<!-- you must define the select box here, as the custom editor for the 'Light' column will require it -->
|
|
<select name="light" id="light" style="display: none;">
|
|
<option value="Shade">Shade</option>
|
|
<option value="Mostly Shady">Mostly Shady</option>
|
|
<option value="Sun or Shade">Sun or Shade</option>
|
|
|
|
<option value="Mostly Sunny">Mostly Sunny</option>
|
|
|
|
<option value="Sunny">Sunny</option>
|
|
</select>
|
|
|
|
<div id="grid-panel" style="width:600px;height:300px;">
|
|
<div id="editor-grid"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|