Class

MatrixDialog

MatrixDialog(props) → {React.PureComponent}

Overview

Uses the VirtualizedMatrix and VirtualizedTable to display misclassification matrix. All tables are vertically centered. A context menu is going to pop up after right clicking on a matrix. It's possible to hide deviations as sometimes they don't provide useful information.
Constructor

# new MatrixDialog(props) → {React.PureComponent}

Parameters:
Name Type Attributes Description
props Object
cellDimensions number | Object <optional>

Dimensions of a cell from the VirtualizedMatrix.

cellDimensions.x number

The width of a matrix cell.

cellDimensions.y number

The height of a matrix cell.

onClose function

Callback fired when dialog requests to be closed.

onMatrixRefresh function

Callback fired when matrix refreshed it's content.

onSnackbarOpen function

Callback fired when the component request to display an error.

open boolean

If true the dialog will show up.

projectId string

The identifier of a selected project.

refreshNeeded boolean

If true dialog will refresh it's content.

resource string

The name of a selected resource.

saveMatrix function <optional>

Callback fired when user requests to save matrix.

serverBase string

The host in the URL of an API call.

title React.ReactNode

The content of the FullscreenHeader.

queryParams Object <optional>

The query parameters in the URL of an API call.

queryParams.typeOfMatrix string

The type of a matrix to fetch.

queryParams.numberOfFold number <optional>

The index of a selected fold.

View Source Utils/Dialogs/MatrixDialog.js, line 51

React.PureComponent