SMART datagrid v.1 > Classes

Back  Forward

DataLudi.ImageCellRenderer  class

It gets and displays the image in the URL which has been saved as the value of data cell. It specifies the size and location of image by imageDisplay property. 

It specifies the type as "image" when setting the column renderer. 

Base Classes
DataCellRenderer > GridObject > EventAware > DLBase
Constructor
function ImageCellRenderer ();
Properties
imageDisplay
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
    grid.setColumns([{
        renderer: {
            type: "image",
            imageDisplay: DataLudi.ImageDisplay.BOTH
        }
    }, 
    ...
    ];
See Also
IconCellRenderer
ShapeCellRenderer
ImageDisplay
Examples
Image Cell Renderer