MCPcopy Index your code
hub / github.com/Lobos/react-ui / constructor

Method constructor

src/Table.js:14–24  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

12
13class Table extends Component {
14 constructor (props) {
15 super(props);
16 this.state = {
17 index: props.pagination ? props.pagination.props.index : 1,
18 data: props.data,
19 sort: {},
20 total: null
21 };
22
23 this.onBodyScroll = this.onBodyScroll.bind(this);
24 }
25
26 componentDidMount () {
27 this.setHeaderWidth();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected