Skip to content

Instantly share code, notes, and snippets.

@burgwyn
Created October 14, 2017 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burgwyn/de4bea5d7f3df8c6778dcd1e2c7130c6 to your computer and use it in GitHub Desktop.
Save burgwyn/de4bea5d7f3df8c6778dcd1e2c7130c6 to your computer and use it in GitHub Desktop.
this.findDelay = typeof this.props.findDelay === 'number' ? this.props.findDelay : 500;
this.options = props.gridOptions;
this.options.columns = this.options.columns ? this.options.columns : [];
this.options.loadCollapsed = this.options.loadCollapsed ? this.options.loadCollapsed : false;
this.options.tableHeight = this.options.tableHeight ? this.options.tableHeight : 500;this.options.rowHeight = this.options.rowHeight ? this.options.rowHeight : 96;
this.defualtColWidth = this.options.columns.length ? `${100 / this.options.columns.length}%` : null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment