81 lines
No EOL
4.1 KiB
HTML
81 lines
No EOL
4.1 KiB
HTML
<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>YAHOO.ext.grid.SelectEditor</title>
|
|
<link rel="stylesheet" type="text/css" href="../resources/reset.css"/>
|
|
<link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/>
|
|
<link rel="stylesheet" type="text/css" href="../resources/print.css" media="print">
|
|
</head>
|
|
<body>
|
|
<div class="body-wrap">
|
|
<div class="top-tools"><img src="../resources/print.gif" width="16" height="16" align="absmiddle"> <a href="YAHOO.ext.grid.SelectEditor.html" target="_blank">Print Friendly</a></div>
|
|
<h1>Class YAHOO.ext.grid.SelectEditor</h1>
|
|
<table cellspacing="0">
|
|
<tr><td class="label">Package:</td><td>YAHOO.ext.grid</td></tr>
|
|
<tr><td class="label">Class:</td><td>SelectEditor</td></tr>
|
|
<tr><td class="label">Extends:</td><td><a href="YAHOO.ext.grid.CellEditor.html">CellEditor</a></td></tr>
|
|
<tr><td class="label">Defined In:</td><td><a href="SelectEditor.js.html">SelectEditor.js</a></td></tr>
|
|
</table>
|
|
<div class="description">
|
|
Creates an editor out of an existing select field. You can create the select element through DOM in Javascript and pass it to the SelectEditor's constructor <b>or</b> an easier way is like this:
|
|
<br><br>
|
|
Define the select field in your document, giving it the ygrid-editor class.
|
|
<pre><code>
|
|
<select id="light" class="ygrid-editor">
|
|
<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>
|
|
</code></pre>
|
|
Create the SelectEditor object, passing in the id of your select field.
|
|
<pre><code>
|
|
var editor = new YAHOO.ext.grid.SelectEditor('light');
|
|
</code></pre>
|
|
For more information on using this editor, see <a href="http://www.jackslocum.com/yui/2006/09/10/adding-built-in-editing-support-to-the-yahoo-ui-extensions-grid/">this blog post</a>. </div>
|
|
<hr />
|
|
<a name="properties"></a>
|
|
<h2>Public Properties</h2>
|
|
<div class="no-members">This class has no public properties.</div> <a name="methods"></a>
|
|
<h2>Public Methods</h2>
|
|
<table cellspacing="0" class="member-table">
|
|
<tr>
|
|
<th class="sig-header" colspan="2">Method</th>
|
|
<th class="msource-header">Defined By</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="micon" rowspan="2"> </td>
|
|
<td class="sig"><a class="mlink" href="#SelectEditor">SelectEditor</a>(<code>HTMLElement/String element</code>)</td>
|
|
<td class="msource" rowspan="2">SelectEditor</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="mdesc">Create a new SelectEditor</td>
|
|
</tr>
|
|
</table>
|
|
<a name="events"></a>
|
|
<h2>Public Events</h2>
|
|
<div class="no-members">This class has no public events.</div>
|
|
|
|
<a name="SelectEditor"></a>
|
|
<h2 class="mdetail-head">Constructor Details</h2>
|
|
<div class="detail-wrap">
|
|
<div class="mdetail">
|
|
<h3>SelectEditor</i></h3>
|
|
<code>public function SelectEditor(<code>HTMLElement/String element</code>)</code>
|
|
<div class="mdetail-desc">
|
|
Create a new SelectEditor <div class="mdetail-params">
|
|
<strong>Parameters:</strong>
|
|
<ul><li><code>element</code> : HTMLElement/String<div class="sub-desc"></div></li> </ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<hr>
|
|
Copyright © 2006 Jack Slocum. All rights reserved.
|
|
</body>
|
|
</html>
|
|
|