Ext JS 3.4.0 Sencha Docs

Ext.grid.RowNumberer

Files

This is a utility class that can be passed into a Ext.grid.ColumnModel as a column config that provides an automatic row numbering column.


Usage:
 // This is a typical column config with the first column providing row numbers
 var colModel = new Ext.grid.ColumnModel([
    new Ext.grid.RowNumberer(),
    {header: "Name", width: 80, sortable: true},
    {header: "Code", width: 50, sortable: true},
    {header: "Description", width: 200, sortable: true}
 ]);
 

Available since: 2.3.0

Defined By

Config options

Ext.grid.RowNumberer
view source
: String
Any valid text or HTML fragment to display in the header cell for the row number column (defaults to ''). ...

Any valid text or HTML fragment to display in the header cell for the row number column (defaults to '').

Defaults to: ""

Available since: 2.3.0

Ext.grid.RowNumberer
view source
: Number
The default width in pixels of the row number column (defaults to 23). ...

The default width in pixels of the row number column (defaults to 23).

Defaults to: 23

Available since: 2.3.0

Defined By

Properties

Ext.grid.RowNumberer
view source
: Stringprivate
...

Defaults to: ''

Available since: Ext JS 3.4.0

Ext.grid.RowNumberer
view source
: Booleanprivate
private ...

private

Defaults to: true

Available since: Ext JS 3.4.0

Ext.grid.RowNumberer
view source
: Booleanprivate
...

Defaults to: false

Available since: Ext JS 3.4.0

Ext.grid.RowNumberer
view source
: Stringprivate
...

Defaults to: 'numberer'

Available since: Ext JS 3.4.0

Ext.grid.RowNumberer
view source
: Booleanprivate
...

Defaults to: true

Available since: Ext JS 3.4.0

Ext.grid.RowNumberer
view source
: Objectprivate

Available since: Ext JS 3.4.0

Defined By

Methods

Ext.grid.RowNumberer
view source
new( config ) : Ext.grid.RowNumberer
...

Available since: 2.3.0

Parameters

  • config : Object

    The configuration options

Returns

Ext.grid.RowNumberer
view source
( v, p, record, rowIndex )private
private ...

private

Available since: Ext JS 3.4.0

Parameters

  • v : Object
  • p : Object
  • record : Object
  • rowIndex : Object