API Docs for: 0.0.2
Show:

grid.Column Class

Module: effect

Specification of a column object for grid.ColumnManager. You can not create objects of this class

Attributes

align

String

Alignment of text(left|right)

Default: 'left'

columns

Array

Attribute used for grouping

Default: undefined

headerAlign

String

Alignment of header

Default: 'left'

heading

String

Heading to diplay

hidden

Boolean

True to make column initial hidden

Default: false

maxWidth

Number

Maximum width of column

Default: 500

minWidth

Number

Minimium width of column

Default: 50

movable

Boolean

True to make column movable

Default: false

removable

Boolean

True to make column removable

Default: false

renderer

Function

Custom renderer for text in column. This is a function. Two parameters are sent to this function. The first one is the record value of this cell, the second one is the record it's self. The function should return a string which will be the value rendered in the cells of this column.

Default: undefined

Example:

renderer:function(value){
    if(value >= 0){
            return '<span style="color:blue">' + val + '</span>';
        }else{
            return '<span style="color:red">' + val + '</span>';
        }
}

resizable

Boolean

True to make column resizable

Default: true

sortable

Boolean

True to make column sortable

Default: false

width

Number

Initial width of column