Guest User

Untitled

a guest
Nov 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. constructor(props) {
  2. super(props);
  3. this.state = {
  4. tabledata: [],
  5.  
  6.  
  7. };
  8.  
  9. this.tabs = makeTabs([
  10. {
  11. id: 'tabledata',
  12. name: translate('feature.tabledata.tab'),
  13. render: this._renderTableContent.bind(this)
  14. }
  15. ]);
  16. }
  17. _renderTableContent() {
  18. let tabContent = null;
  19. if (this.state.tabledata instanceof Array) {
  20. if (this.state.tabledata.length === 0) {
  21. // this.setState({ trustedadvisor: null });
  22. this._getTableContent();
  23. }
  24. }
  25. tabContent = (<ContentTable
  26. tablecontent={this.state.tabledata}
  27. />);
  28. return tabContent;
  29. }
Add Comment
Please, Sign In to add comment