ResultsMultiLayout
ResultsMultiLayout
is an uncontrolled component that listens to the application's layout
state and
renders results in a list
(ResultsList) or grid
(ResultsGrid)
respectively. Can be used in combination with the LayoutSwitcher
component to change the results layout in controllable way.
By default it renders results as a list.
Usage
<ResultsMultiLayout />
Props
overridableId
String
optionalAn optional string to define a specific overridable id.
onResultsRendered
func
optionalAn optional function to define set of actions to be performed after the component is rendered. For example: render MathJax to display mathematical equations.
Usage when overriding
const MyResultsMultiLayout = ({ layout }) => {
...
}
const overriddenComponents = {
"ResultsMultiLayout.element": MyResultsMultiLayout
};
Parameters
layout
String
The current selected layout. Possible values:
list
orgrid
.