beba4a6171f7252e6d0f72eb29156c279313042d.svn-base 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <div class="body-wrap">
  2. <div class="top-tools">
  3. <a class="inner-link" href="#Ext.grid.RowNumberer-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
  4. <a class="inner-link" href="#Ext.grid.RowNumberer-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
  5. <a class="inner-link" href="#Ext.grid.RowNumberer-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
  6. <a class="inner-link" href="#Ext.grid.RowNumberer-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
  7. <a class="bookmark" href="../docs/?class=Ext.grid.RowNumberer"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
  8. </div>
  9. <h1>Class Ext.grid.RowNumberer</h1>
  10. <table cellspacing="0">
  11. <tr><td class="label">Package:</td><td class="hd-info">Ext.grid</td></tr>
  12. <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/RowNumberer.js" target="_blank">RowNumberer.js</a></td></tr>
  13. <tr><td class="label">Class:</td><td class="hd-info">RowNumberer</td></tr>
  14. <tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
  15. </table>
  16. <div class="description">
  17. This is a utility class that can be passed into a <a ext:cls="Ext.grid.ColumnModel" href="output/Ext.grid.ColumnModel.html">Ext.grid.ColumnModel</a> as a column config that provides
  18. an automatic row numbering column.
  19. <br>Usage:<br>
  20. <pre><code><i>// This is a typical column config <b>with</b> the first column providing row numbers</i>
  21. <b>var</b> colModel = <b>new</b> Ext.grid.ColumnModel([
  22. <b>new</b> Ext.grid.RowNumberer(),
  23. {header: <em>"Name"</em>, width: 80, sortable: true},
  24. {header: <em>"Code"</em>, width: 50, sortable: true},
  25. {header: <em>"Description"</em>, width: 200, sortable: true}
  26. ]);</code></pre> </div>
  27. <div class="hr"></div>
  28. <a id="Ext.grid.RowNumberer-configs"></a>
  29. <h2>Config Options</h2>
  30. <table cellspacing="0" class="member-table">
  31. <tr>
  32. <th class="sig-header" colspan="2">Config Options</th>
  33. <th class="msource-header">Defined By</th>
  34. </tr>
  35. <tr class="config-row">
  36. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  37. <td class="sig">
  38. <a id="Ext.grid.RowNumberer-header"></a>
  39. <b>header</b> : String <div class="mdesc">
  40. Any valid text or HTML fragment to display in the header cell for the row number column (defaults to ''). </div>
  41. </td>
  42. <td class="msource">RowNumberer</td>
  43. </tr>
  44. <tr class="config-row alt">
  45. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  46. <td class="sig">
  47. <a id="Ext.grid.RowNumberer-sortable"></a>
  48. <b>sortable</b> : Boolean <div class="mdesc">
  49. True if the row number column is sortable (defaults to false). </div>
  50. </td>
  51. <td class="msource">RowNumberer</td>
  52. </tr>
  53. <tr class="config-row">
  54. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  55. <td class="sig">
  56. <a id="Ext.grid.RowNumberer-width"></a>
  57. <b>width</b> : Number <div class="mdesc">
  58. The default width in pixels of the row number column (defaults to 23). </div>
  59. </td>
  60. <td class="msource">RowNumberer</td>
  61. </tr>
  62. </table>
  63. <a id="Ext.grid.RowNumberer-props"></a>
  64. <h2>Public Properties</h2>
  65. <div class="no-members">This class has no public properties.</div> <a id="Ext.grid.RowNumberer-methods"></a>
  66. <h2>Public Methods</h2>
  67. <table cellspacing="0" class="member-table">
  68. <tr>
  69. <th class="sig-header" colspan="2">Method</th>
  70. <th class="msource-header">Defined By</th>
  71. </tr>
  72. <tr class="method-row expandable">
  73. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  74. <td class="sig">
  75. <a id="Ext.grid.RowNumberer-RowNumberer"></a>
  76. <b>RowNumberer</b>(&nbsp;<code>Object config</code>&nbsp;) <div class="mdesc">
  77. <div class="short"></div>
  78. <div class="long">
  79. <div class="mdetail-params">
  80. <strong>Parameters:</strong>
  81. <ul><li><code>config</code> : Object<div class="sub-desc">The configuration options</div></li> </ul>
  82. <strong>Returns:</strong>
  83. <ul>
  84. <li><code></code></li>
  85. </ul>
  86. </div>
  87. </div>
  88. </div>
  89. </td>
  90. <td class="msource">RowNumberer</td>
  91. </tr>
  92. </table>
  93. <a id="Ext.grid.RowNumberer-events"></a>
  94. <h2>Public Events</h2>
  95. <div class="no-members">This class has no public events.</div>
  96. </div>