SMART datagrid v.1 > Classes

Back  Forward

DataLudi.SignalBarCellRenderer  class

It displays the value of data cell and the percentage about the range of minimum and maximum with signal bar of discontinuous barCount number of indicating signal strength. Since it is displayed in the number unit of signal bar, it can be used in the case of indicating the value of each stage rather than an accurate value. 

The signal bar as much as the value is drawn by GridStyles.shapeBackground, and the rest signal bar is drawn by GridStyles.shapeInactiveBackground

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

Base Classes
DataCellRenderer > GridObject > EventAware > DLBase
Constructor
function SignalBarCellRenderer ();
Properties
barCount
barGap
barRate
detailed
endRate
maximum
minimum
startRate
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: "2000",
        fieldName: "2000",
        width: "100",
        renderer: {
            type: "signal",
            maximum: 10,
            barCount: 8,
            detailed: true,
            startRate: 1,
            endRate: 0.5
        },
        styles: {
            textAlignment: "far",
            shapeColor: "#080"
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
GridStyles
BarCellRenderer
ShapeCellRenderer
ImageCellRenderer
IconCellRenderer
Examples
Signal Bar Cell Renderer