Class Banana.Controls.DataGridColumn
Extends
Banana.Control.
- Methods borrowed from class Banana.Control:
- addControl, applyToChildren, bind, clear, createComponents, findControl, generateUniqueId, getClientId, getControls, getDomEventTypes, getFirstUiControl, getHtml, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setClientId, setId, setPage, setParent, triggerEvent, unbind, unload, updateDisplay
Defined in: DataGridColumn.js.
Class Detail
Banana.Controls.DataGridColumn()
Creates datagrid column for usage in table list renders
Method Detail
returns the header text visible in grid on top of each column
- Returns:
- {String}
gets reference to the underlying list render.
- Returns:
- {Banana.Controls.DataGridTableListRender}
Sets attribute
- Parameters:
- {String} attribute
- {String} value
- Returns:
- {this}
Sets data on the column. Automaticaly called by the list render.
- Parameters:
- {mixed} data
- Returns:
- {this}
use property of data object which should be applied to the column control If your data looks like {name:"foo",id:12} you can use either setDataField("name") or setDataField("id")
- Parameters:
- {String} fields
- Returns:
- {this}
Sets style applied in the header on top of each row
- Parameters:
- {String} css
- Returns:
- {this}
Sets the header text visible in grid on top of each column
- Parameters:
- {String} text
- Returns:
- {this}