SMART datagrid v.1 > Classes > SignalBarCellRenderer

Back  Forward

DataLudi.SignalBarCellRenderer.maximum  property

Among the total number of signal bars which have been set by barCount, the number of activated signal bars is calculated by the ratio of the range which is determined by this property and minimum and the value of data cell. 

Defaults to NaN.

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