SMART datagrid v.1 > Classes

Back  Forward

DataLudi.TextCellRenderer  class

It is a default renderer which displays the value of data cell as text. It specifies the horizontal alignment of text by GridStyles.textAlignment and vertical alignment by lineAlignment. It specifies the color of text by foreground and the background of cell by background. In addition, it uses font related styles like fontName, fontBold, etc. 

When setting the column renderer, it is used in the case of specifying the type as "text" or not specifying the type. 

Base Classes
DataCellRenderer > GridObject > EventAware > DLBase
Inherited Classes
SeriesTextCellRenderer
Constructor
function TextCellRenderer ();
Properties
showTooltip
Inherited Properties
GridObject.owner
DataCellRenderer.showTooltip
Inherited Methods
EventAware.addListener
DLBase.assign
GridObject.ctor
DataCellRenderer.ctor
DLBase.getProperties
DLBase.getProperty
EventAware.removeListener
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    var columns = [{
        name: "customer",
        fieldName: "customer",
        renderer: {
            type: "text",
            showTooltip: true
        },
        header: {
            text: "Customer"
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
GridStyles
textAlignment
lineAlignment
foreground
background
fontName
fontBold
fontItalic
fontUnderline
fontLinethrough
ImageCellRenderer
IconCellRenderer
ShapeCellRenderer