bigridrow.html
来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· HTML 代码 · 共 352 行
HTML
352 行
<!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>BiGridRow</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="BiGridRow">BiGridRow</h1><p>This class represents the rows in<code><a href="BiGrid.html">BiGrid</a></code>. Each row contains <code><a href="BiGridCell.html">cells</a></code> that contains the text to show for the column.</p><p>This class extends <code><a href="BiAbstractGridRow.html">BiAbstractGridRow</a></code> and therefore all methods and fields available for <code><a href="BiAbstractGridRow.html">BiAbstractGridRow</a></code> are also available for <code>BiGridRow</code>.</p><ul class="partial-class-tree"><li><code><a href="BiObject.html">BiObject</a></code><ul><li><code><a href="BiAbstractGridRow.html">BiAbstractGridRow</a></code><ul><li><code>BiGridRow</code><ul id="api-derived-classes"><li><code><a href="BiGridChartRow.html">BiGridChartRow</a></code></li></ul></li></ul></li></ul></li></ul><h2>Constructor</h2><p><code> new BiGridRow([<span class="methodArgument">oData</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>oData</code></td><td><code class="type">Object[]</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>This is an array containing the data to be used for each cell. If this argument is left out the cells will be have to be added using <code><a href="#addCell">addCell</a></code>.</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="cells"></a><code>cells</code></td><td><code class="type"> <code><a href="BiGridCell.html">BiGridCell[]</a></code> </code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Returns the cells for the row.</td></tr><tr><td><a name="cssClassName"></a><code>cssClassName</code></td><td><code class="type">String</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Returns the CSS class name used for the row.</td></tr><tr><td><a name="grid"></a><code>grid</code></td><td><code class="type"> <code><a href="BiGrid.html">BiGrid</a></code> </code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Returns the grid component that the row is part of</td></tr><tr><td><a name="html"></a><code>html</code></td><td><code class="type">String</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Returns the HTML for the row and all its cells. This is used by the <code><a href="BiAbstractGrid.html#treeBodyHtml">BiAbstractGrid gridBodyHtml property</a></code> when drawing the grid.</td></tr><tr><td><a name="nextSiblingRow"></a><code>nextSiblingRow</code></td><td><code class="type"> <code><a href="BiGridRow.html">BiGridRow</a></code> </code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Returns the next grid row sibling.</td></tr><tr><td><a name="previousSiblingRow"></a><code>previousSiblingRow</code></td><td><code class="type"> <code><a href="BiGridRow.html">BiGridRow</a></code> </code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Returns the previous grid row sibling.</td></tr><tr><td><a name="rowHeaderHtml"></a><code>rowHeaderHtml</code></td><td><code class="type">String</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Returns the HTML used for the row header for the row.</td></tr><tr><td><a name="rowHeaderLabelHtml"></a><code>rowHeaderLabelHtml</code></td><td><code class="type">String</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Returns the HTML for the text on the row header used for the row. Override this method to define what to show on the row header.</td></tr><tr><td><a name="rowIndex"></a><code>rowIndex</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>The index of the row</td></tr></tbody></table><h2>Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#addCell">addCell</a></code></td><td>Adds a cell to the row</td></tr><tr><td><code><a href="#getCell">getCell</a></code></td><td>Returns the cell for the given column index.</td></tr><tr><td><code><a href="#getData">getData</a></code></td><td>Returns the data for the given column index</td></tr><tr><td><code><a href="#removeCell">removeCell</a></code></td><td>Removes a cell from the row</td></tr><tr><td><code><a href="#setData">setData</a></code></td><td>Sets the data for a given column index</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>Changing the grid row does not automatically update the grid. The <code><a href="BiGrid.html">grid</a></code> will have to be updated manually.</p><h2>Method Details</h2><h3><a name="addCell"></a>addCell</h3><p>Adds a cell to the row</p><h4>Syntax</h4><pre class="method-syntax">object.addCell(<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="BiGridCell.html">BiGridCell</a></code> </code></td><td class="optional-column"></td><td></td><td>The cell to add</td></tr><tr><td><code>oBefore</code></td><td><code class="type"> <code><a href="BiGridCell.html">BiGridCell</a></code> </code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>If provided, oChild is added before this cell </td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p><h3><a name="getCell"></a>getCell</h3><p>Returns the cell for the given column index.</p><h4>Syntax</h4><pre class="method-syntax">object.getCell(<span class="methodArgument">nCol</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>nCol</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The column to get the cell for</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiGridCell.html">BiGridCell</a></code> </code></p><h3><a name="getData"></a>getData</h3><p>Returns the data for the given column index</p><h4>Syntax</h4><pre class="method-syntax">object.getData(<span class="methodArgument">x</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>x</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The column index of the cell to get the data for</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Object</code></p><h3><a name="removeCell"></a>removeCell</h3><p>Removes a cell from the row</p><h4>Syntax</h4><pre class="method-syntax">object.removeCell(<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="BiGridCell.html">BiGridCell</a></code> </code></td><td class="optional-column"></td><td></td><td>The cell to remove</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiGridCell.html">BiGridCell</a></code> </code></p><h3><a name="setData"></a>setData</h3><p>Sets the data for a given column index</p><h4>Syntax</h4><pre class="method-syntax">object.setData(<span class="methodArgument">x</span>, <span class="methodArgument">oData</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>x</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The column index of the cell to set the data for</td></tr><tr><td><code>oData</code></td><td><code class="type">Object</code></td><td class="optional-column"></td><td></td><td>The data to set on the cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?