Constructor
# new VirtualizedMatrix(props) → {React.ReactElement}
Overview
The MultiGrid component wrapped around in AutoSizer from react-virtualized library with custom styling. There is a defaultcellRenderer
function in this component.
For full documentation check out this react-virtualized docs on
MultiGrid and
AutoSizer.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
props |
Object | |||
cellDimensions |
number | Object |
<optional> |
64 | Dimensions of a cell from the MultiGrid. |
matrix |
Array.<Array> |
<optional> |
A data set that is going to be displayed inside of the matrix. |
|
type |
string |
<optional> |
The part of title visible in a |
React.ReactElement
Methods
# inner cellRenderer(columnIndex, key, rowIndex, style) → {React.ReactElement}
Overview
DefaultcodeRenderer
for VirtualizedMatrix
.
It renders a 'div' element with a TextWithHoverTooltip
when columnIndex + rowIndex > 0
or a CircleHelper
when columnIndex + rowIndex === 0
.
For full documentation check out react-virtualized docs on cellRenderer
Parameters:
Name | Type | Description |
---|---|---|
columnIndex |
number | Horizontal (column) index of cell. |
key |
string | Unique key within array of cells. |
rowIndex |
number | Vertical (row) index of cell. |
style |
Object | Style object to be applied to cell (to position it). |
React.ReactElement