dojox/grid/cells/_base (version 1.10)

Summary

Represents a grid cell and contains information about column options and methods for retrieving cell related information. Each column in a grid layout has a cell object and most events and many methods provide access to these objects.

Usage

var foo = new _base(inProps);
dojox/grid/cells/_base
Parameter Type Description
inProps undefined

Property Summary

Method Summary

Event Summary

Properties

_formatPending
_valueProp
alwaysEditing
classes
defaultValue
draggable
editable
formatter
hidden
noresize
styles
value

Methods

_defaultFormat(inValue,callArgs)
Parameter Type Description
inValue undefined
callArgs undefined
Returns:undefined | string | instance
_finish(inRowIndex)

called when editing is completed to clean up editor

Parameter Type Description
inRowIndex int

grid row index

_formatNode(inDatum,inRowIndex)
Parameter Type Description
inDatum undefined
inRowIndex undefined
AlwaysEdit()
apply(inRowIndex)

apply edit from cell editor

Parameter Type Description
inRowIndex int

grid row index

applyEdit(inValue,inRowIndex)
Parameter Type Description
inValue undefined
inRowIndex undefined
Bool()
cancel(inRowIndex)

cancel cell edit

Parameter Type Description
inRowIndex int

grid row index

cancelEdit(inRowIndex)
Parameter Type Description
inRowIndex undefined
cancelFormatNode()
canResize()
Returns:undefined
Cell()
dispatchEvent(m,e)
Parameter Type Description
m undefined
e undefined
Returns:undefined
focus(inRowIndex,inNode)

focus the grid editor

Parameter Type Description
inRowIndex int

grid row index

inNode undefined

editor node

format(inRowIndex,inItem)

provides the html for a given grid cell.

Parameter Type Description
inRowIndex int

grid row index

inItem undefined
Returns:any | undefined

html for a given grid cell

formatEditing(inDatum,inRowIndex)

formats the cell for editing

Parameter Type Description
inDatum anything

cell data to edit

inRowIndex int

grid row index

Returns:any

string of html to place in grid cell

formatNode(inNode,inDatum,inRowIndex)

format the editing dom node. Use when editor is a widget.

Parameter Type Description
inNode undefined

dom node for the editor

inDatum anything

cell data to edit

inRowIndex int

grid row index

getEditNode(inRowIndex)
Parameter Type Description
inRowIndex undefined
Returns:number
getHeaderNode()
Returns:undefined
getNode(inRowIndex)

gets the dom node for a given grid cell.

Parameter Type Description
inRowIndex int

grid row index

Returns:any | undefined

dom node for a given grid cell

getValue(inRowIndex)

returns value entered into editor

Parameter Type Description
inRowIndex int

grid row index

Returns:any | undefined

value of editor

isFlex()
Returns:undefined
markupFactory(node,cellDef)
Parameter Type Description
node undefined
cellDef undefined
needFormatNode(inDatum,inRowIndex)
Parameter Type Description
inDatum undefined
inRowIndex undefined
registerOnBlur(inNode,inRowIndex)
Parameter Type Description
inNode undefined
inRowIndex undefined
restore(inRowIndex)

restore editor state

Parameter Type Description
inRowIndex int

grid row index

RowIndex()
save(inRowIndex)

save editor state

Parameter Type Description
inRowIndex int

grid row index

Select()
setValue(inRowIndex,inValue)

set the value of the grid editor

Parameter Type Description
inRowIndex int

grid row index

inValue anything

value of editor

Events

_onEditBlur(inRowIndex)
Parameter Type Description
inRowIndex undefined
Error in the documentation? Can’t find what you are looking for? Let us know!