Sorts the data that is shown in the table on each of the 'sorts' that are stored in state.
Sets the state with the currently selected item or removes the selection from the item and removes it from state.
Sorts two ItemCardModels on the property specified by the sort parameter
On header click, the column that was clicked will be added to the sorts array in state or its sort status will be removed.
Renders the ItemTable component
Renders the HeaderTable component, the header to the ItemTable
Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.
Called immediately after a compoment is mounted. Setting state here will trigger re-rendering.
Called immediately after updating occurs. Not called for the initial render.
Called immediately before mounting occurs, and before Component#render
.
Avoid introducing any side-effects or subscriptions in this method.
Called when the component may be receiving new props. React may call this even if props have not changed, so be sure to compare new and existing props if you only want to handle changes.
Calling Component#setState
generally does not trigger this method.
Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as
cancelled network requests, or cleaning up any DOM elements created in componentDidMount
.
Called immediately before rendering when new props or state is received. Not called for the initial render.
Note: You cannot call Component#setState
here.
Called to determine whether the change in props and state should trigger a re-render.
Component
always returns true.
PureComponent
implements a shallow comparison on props and state and returns true if any
props or states have changed.
If false is returned, Component#render
, componentWillUpdate
and componentDidUpdate
will not be called.
Generated using TypeDoc
Container for a table of Items that can be sorted by clicking on a table header. When an item is clicked, it displays an iframe of that question.