RealGrid2 API
Interface
SignalBarCellRenderer

SignalBarCellRenderer

Renderer that displays cell values as signal strength

Signature:

export interface SignalBarCellRenderer extends CellRenderer

Extends: CellRenderer

Remarks

The location of the value within the given range is displayed in the form of signal strength.

If mininum and maxinum are not given, the range is from 0 to barCount.

[Superclass]

CellRenderer

Example

//string type
column.renderer = 'signalbar';
 
// object type
let column.renderer = {
      "type": "signalbar",
      "barCount": 5
}

Properties

PropertyTypeDescription
absoluteValuebooleanWhether to draw as absolute value
barCountnumberTotal number of bars
barStylestringStyle name of bar that shows signal strength
endRatenumberRatio of the height of the end bar compared to the cell
inactiveStylestringStyle name that applies to a range greater than the value
maximumnumberMaximum value that can be expressed directly
minimumnumberMinimum value that can be expressed directly
startRatenumberRatio of the height of the starting bar compared to the cell
type'signalbar'Type: Signal Bar

Properties Desc

absoluteValue

Whether to draw as an absolute value

Type - boolean


barCount

Total number of bars

Type - number


barStyle

Style name of a bar that shows signal strength

Type - string


endRate

Ratio of the height of the end bar compared to the cell

Type - number


inactiveStyle

Style name that applies to a range greater than the value

Type - string


maximum

The maximum value that can be expressed immediately

Type - number

Remarks:

Must be used with minimum.

For example, if minimum is 50 and maximum is 150, the value between 50 and 150 is displayed as barStyle, and the range greater than the value is displayed as inactiveStyle.


minimum

Minimum value that can be expressed directly

Type - number

Remarks:

Must be used with maximum.

For example, if minimum is 50 and maximum is 150, the value between 50 and 150 is displayed as barStyle, and the range greater than the value is displayed as inactiveStyle.


startRate

Ratio of the height of the starting bar compared to the cell

Type - number


type

Type: Signal Bar

Type - 'signalbar'