bigrid2.html

来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· HTML 代码 · 共 253 行

HTML
253
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><!--Generated using api.website.xsl version 2003-07-17--><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>BiGrid2</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type="text/css" rel="stylesheet" href="api.css"><script type="text/javascript">				function showDerivedClasses() {					var ul = document.getElementById("api-derived-classes");					var lis = ul.childNodes;					var l = lis.length;					for (var i = 1; i < l; i++)						lis[i].style.display = "";					lis[0].style.display = "none";				}			</script></head><body><h1 id="BiGrid2">BiGrid2</h1><p>This component is a special case of<code><a href="BiTreeView.html">BiTreeView</a></code> which has an interface which is similar to<code><a href="BiGrid.html">BiGrid</a></code>	</p><p>This class extends		<code><a href="BiTreeView.html">BiTreeView</a></code>		and therefore all methods and fields available for		<code><a href="BiTreeView.html">BiTreeView</a></code>		are also available for <code>BiGrid2</code>.</p><ul class="partial-class-tree"><li><code><a href="BiObject.html">BiObject</a></code><ul><li><code><a href="BiEventTarget.html">BiEventTarget</a></code><ul><li><code><a href="BiComponent.html">BiComponent</a></code><ul><li><code><a href="BiTreeViewBase.html">BiTreeViewBase</a></code><ul><li><code><a href="BiTreeView.html">BiTreeView</a></code><ul><li><code>BiGrid2</code><ul id="api-derived-classes"></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul><h2>Constructor</h2><p><code>	new BiGrid2([<span class="methodArgument">oGridData</span> [, <span class="methodArgument">oColumnNames</span>]])</code></p><h3>Parameters</h3><table><thead><tr><td>Name</td><td>Type</td><td class="optional-header">Optional</td><td>Default</td><td>Descripton</td></tr></thead><tbody><tr><td><code>oGridData</code></td><td><code class="type">Object[][]</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>Optional data to initialize the grid 									with.</td></tr><tr><td><code>oColumnNames</code></td><td><code class="type">String[]</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>Optional string array telling what to 									show on the grid headers.</td></tr></tbody></table><h2>Properties</h2><table><thead><tr><td>Name</td><td>Type</td><td class="get-header">get</td><td class="set-header">set</td><td>Descripton</td></tr></thead><tbody><tr><td><a name="columnCount"></a><code>columnCount</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"><img src="check.png" alt="checked"></td><td>The number of columns in the grid</td></tr><tr><td><a name="columnNames"></a><code>columnNames</code></td><td><code class="type">String[]</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"><img src="check.png" alt="checked"></td><td>The text to show on the headers of the grid</td></tr><tr><td><a name="columnOrders"></a><code>columnOrders</code></td><td><code class="type">Number[]</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"><img src="check.png" alt="checked"></td><td>The order of the columns. This an array containing the indexes of the columns.</td></tr><tr><td><a name="columnWidths"></a><code>columnWidths</code></td><td><code class="type">String[]</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"><img src="check.png" alt="checked"></td><td>The widths of the columns of the grid</td></tr><tr><td><a name="rows"></a><code>rows</code></td><td><code class="type">				<code><a href="BiGrid2Row.html">BiGrid2Row[]</a></code>			</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>The rows in the grid</td></tr><tr><td><a name="showGridLines"></a><code>showGridLines</code></td><td><code class="type">Boolean</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"><img src="check.png" alt="checked"></td><td>Whether to show grid lines between the cells in the grid</td></tr><tr><td><a name="showHeaders"></a><code>showHeaders</code></td><td><code class="type">Boolean</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"><img src="check.png" alt="checked"></td><td>Whether to show the headers for the grid</td></tr><tr><td><a name="showRowHeaders"></a><code>showRowHeaders</code></td><td><code class="type">Boolean</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"><img src="check.png" alt="checked"></td><td>Whether to show the row headers for the grid</td></tr></tbody></table><h2>Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#addRow">addRow</a></code></td><td>Adds a row to the grid</td></tr><tr><td><code><a href="#removeAll">removeAll</a></code></td><td>This removes all the rows</td></tr><tr><td><code><a href="#removeRow">removeRow</a></code></td><td>Removes a row item from the grid</td></tr></tbody></table><h2>Events</h2><p>None.</p><h2>Static Methods</h2><p>None.</p><h2>Static Fields</h2><p>None.</p><h2>Remarks</h2><p>	</p><h2>Method Details</h2><h3><a name="addRow"></a>addRow</h3><p>Adds a row to the grid</p><h4>Syntax</h4><pre class="method-syntax">object.addRow(<span class="methodArgument">oChild</span> [, <span class="methodArgument">oBefore</span>])</pre><h4>Parameters</h4><table><thead><tr><td>Name</td><td>Type</td><td class="optional-header">Optional</td><td>Default</td><td>Descripton</td></tr></thead><tbody><tr><td><code>oChild</code></td><td><code class="type">						<code><a href="BiGrid2Row.html">BiGrid2Row</a></code>					</code></td><td class="optional-column"></td><td></td><td>The row to add to the grid</td></tr><tr><td><code>oBefore</code></td><td><code class="type">						<code><a href="BiGrid2Row.html">BiGrid2Row</a></code>					</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>Optional argument telling what row to insert before</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p><h3><a name="removeAll"></a>removeAll</h3><p>This removes all the rows</p><h4>Syntax</h4><pre class="method-syntax">object.removeAll()</pre><h4>Parameters</h4><p>No arguments.</p><h4>Return Type</h4><p><code class="type">void</code></p><h3><a name="removeRow"></a>removeRow</h3><p>Removes a row item from the grid</p><h4>Syntax</h4><pre class="method-syntax">object.removeRow(<span class="methodArgument">oChild</span>)</pre><h4>Parameters</h4><table><thead><tr><td>Name</td><td>Type</td><td class="optional-header">Optional</td><td>Default</td><td>Descripton</td></tr></thead><tbody><tr><td><code>oChild</code></td><td><code class="type">						<code><a href="BiGrid2Row.html">BiGrid2Row</a></code>					</code></td><td class="optional-column"></td><td></td><td>The row to remove</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?