SMART datagrid v.1 > Classes > SignalBarCellRenderer

Back  Forward

DataLudi.SignalBarCellRenderer.barCount  property

The total number of signal bars. 

The number of activated signal bars is calculated by the ratio of the range which is determined by minimum and maximum and the value of data cell. It should be at least one. 

Defaults to 4.

Getter
function barCount(): Integer
Setter
function setBarCount(value: Integer)
Code -1
    var columns = [{
        name: "2000",
        fieldName: "2000",
        width: "100",
        renderer: {
            type: "signal",
            maximum: 10,
            minimum: 0,
            barCount: 8
        },
        styles: {
            textAlignment: "far",
            shapeColor: "#080"
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
minimum
maximum
detailed
Examples
Signal Bar Cell Renderer