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]
Example
//string type
column.renderer = 'signalbar';
// object type
let column.renderer = {
"type": "signalbar",
"barCount": 5
}
Properties
Property | Type | Description |
---|---|---|
absoluteValue | boolean | Whether to draw as absolute value |
barCount | number | Total number of bars |
barStyle | string | Style name of bar that shows signal strength |
endRate | number | Ratio of the height of the end bar compared to the cell |
inactiveStyle | string | Style name that applies to a range greater than the value |
maximum | number | Maximum value that can be expressed directly |
minimum | number | Minimum value that can be expressed directly |
startRate | number | Ratio 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'