📄 bigrid2row.html
字号:
<!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>BiGrid2Row</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="BiGrid2Row">BiGrid2Row</h1><p>This class is used as the data for rows in the<code><a href="BiGrid2.html">BiGrid2</a></code> component</p><p>This class extends <code><a href="BiObject.html">BiObject</a></code> and therefore all methods and fields available for <code><a href="BiObject.html">BiObject</a></code> are also available for <code>BiGrid2Row</code>.</p><ul class="partial-class-tree"><li><code><a href="BiObject.html">BiObject</a></code><ul><li><code>BiGrid2Row</code><ul id="api-derived-classes"></ul></li></ul></li></ul><h2>Constructor</h2><p><code> new BiGrid2Row([<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>Optional array of objects describing the data for the cells</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="BiGrid2Cell.html">BiGrid2Cell[]</a></code> </code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>The cells in the row</td></tr><tr><td><a name="grid"></a><code>grid</code></td><td><code class="type"> <code><a href="BiGrid2.html">BiGrid2</a></code> </code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>The grid that the row is part of</td></tr><tr><td><a name="isAnchor"></a><code>isAnchor</code></td><td><code class="type">Boolean</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Whether the row is the selection anchor for the current selection</td></tr><tr><td><a name="isLead"></a><code>isLead</code></td><td><code class="type">Boolean</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Whether the row is the lead item of the selection</td></tr><tr><td><a name="selected"></a><code>selected</code></td><td><code class="type">Boolean</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Whether the row is selected</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</td></tr><tr><td><code><a href="#getData">getData</a></code></td><td>Returns the data at the given column</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 the cell at the given column</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="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="BiGrid2Cell.html">BiGrid2Cell</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="BiGrid2Cell.html">BiGrid2Cell</a></code> </code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>Optional cell to insert the new cell before</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</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 index for the cell to get</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiGrid2Cell.html">BiGrid2Cell</a></code> </code></p><h3><a name="getData"></a>getData</h3><p>Returns the data at the given column</p><h4>Syntax</h4><pre class="method-syntax">object.getData(<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 index for the data</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="BiGrid2Cell.html">BiGrid2Cell</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="BiGrid2Cell.html">BiGrid2Cell</a></code> </code></p><h3><a name="setData"></a>setData</h3><p>Sets the data for the cell at the given column</p><h4>Syntax</h4><pre class="method-syntax">object.setData(<span class="methodArgument">nCol</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>nCol</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The column index for the data</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 associated with the cell at the given column</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Object</code></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -