bitreeviewdatamodel.html
来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· HTML 代码 · 共 1,095 行 · 第 1/3 页
HTML
1,095 行
<td>The row index for the cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Boolean</code></p><h3><a name="getCellStyle"></a>getCellStyle</h3><p>This allows a custom CSS text to be applied to a cell. This allows more detailed control over the rendering of the cell.</p><h4>Syntax</h4><pre class="method-syntax">object.getCellStyle(<span class="methodArgument">x</span>, <span class="methodArgument">y</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 for the cell</td></tr><tr><td><code>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The row index for the cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">String</code></p><h3><a name="getCellText"></a>getCellText</h3><p>This should return the text (HTML string) to show for the cell at (x,y)</p><h4>Syntax</h4><pre class="method-syntax">object.getCellText(<span class="methodArgument">x</span>, <span class="methodArgument">y</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 for the cell</td></tr><tr><td><code>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The row index for the cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">String</code></p><h3><a name="getContextMenu"></a>getContextMenu</h3><p>This allows a context menu to be shown when the user invokes the context menu on the cell</p><h4>Syntax</h4><pre class="method-syntax">object.getContextMenu(<span class="methodArgument">x</span>, <span class="methodArgument">y</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 for the cell</td></tr><tr><td><code>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The row index for the cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiMenu.html">BiMenu</a></code> </code></p><h3><a name="getDepth"></a>getDepth</h3><p>The depth of the current row. If the data model describes a tree structure the depth is used to indent the row</p><h4>Syntax</h4><pre class="method-syntax">object.getDepth(<span class="methodArgument">y</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>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The index for the row</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Number</code></p><h3><a name="getDropDataTypes"></a>getDropDataTypes</h3><p>Returns the supported data types for the cell. Return <code>[]</code> or <code>null</code> if no drop is desired on the cll</p><h4>Syntax</h4><pre class="method-syntax">object.getDropDataTypes(<span class="methodArgument">x</span>, <span class="methodArgument">y</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 for the cell</td></tr><tr><td><code>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The row index for the cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">String[]</code></p><h3><a name="getExpanded"></a>getExpanded</h3><p>Returns whether the row is expanded</p><h4>Syntax</h4><pre class="method-syntax">object.getExpanded(<span class="methodArgument">y</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>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The index for the row</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Boolean</code></p><h3><a name="getHasChildren"></a>getHasChildren</h3><p>Returns whether the row has any children</p><h4>Syntax</h4><pre class="method-syntax">object.getHasChildren(<span class="methodArgument">y</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>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The index for the row</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Boolean</code></p><h3><a name="getHasIcon"></a>getHasIcon</h3><p>Returns whether the cell should display an icon. If this is the case the actual image URI is returned using getIcon</p><h4>Syntax</h4><pre class="method-syntax">object.getHasIcon(<span class="methodArgument">x</span>, <span class="methodArgument">y</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 for the cell</td></tr><tr><td><code>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The row index for the cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Boolean</code></p><h3><a name="getHeaderCellStyle"></a>getHeaderCellStyle</h3><p>This allows a custom CSS text to be applied to a header cell. This allows more detailed control over the rendering of the header cell.</p><h4>Syntax</h4><pre class="method-syntax">object.getHeaderCellStyle(<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 for the header cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">String</code></p><h3><a name="getHeaderCellText"></a>getHeaderCellText</h3><p>This should return the text (HTML string) to show for the header cell at x</p><h4>Syntax</h4><pre class="method-syntax">object.getHeaderCellText(<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 for the header cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">String</code></p><h3><a name="getIcon"></a>getIcon</h3><p>Returns the path to the image to show on the cell. This is only called for cells that should have an icon accordingly to getHasIcon</p><h4>Syntax</h4><pre class="method-syntax">object.getIcon(<span class="methodArgument">x</span>, <span class="methodArgument">y</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 for the cell</td></tr><tr><td><code>y</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The row index for the cell</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">String</code></p><h3><a name="getIconStyle"></a>getIconStyle</h3><p>Use this to specify some custom CSS to use for the icon image.</p><h4>Syntax</h4><pre class="method-syntax">object.getIconStyle(<span class="methodArgument">y</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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?