Last active
February 24, 2017 14:35
-
-
Save pastelsky/290744759e1f15bce4bcaa8a8a8a8af9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TableColumns.COST, { | |
render: (cost, record) => ( | |
<Cell.Number value={ cost } | |
isEditable={ this.canEdit(TableColumns.COST) } | |
onSubmit={ value => this.handleCostSubmit(value, record) } | |
/> | |
), | |
}], | |
[TableColumns.IS_PRIORITY, { | |
render: (isPriority, record) => ( | |
<Cell.Boolean value={ isPriority } | |
isEditable={ this.canEdit(TableColumns.IS_PRIORITY) } | |
onChange={ () => this.handleIsPriorityChange(record, isPriority) } | |
/> | |
), | |
}], | |
[TableColumns.CREATED_ON, { | |
render: date => <Cell.Date date={ date } />, | |
filterDropdown: ( | |
<FilterDropdown.Date | |
column={ TableColumns.CREATED_ON } | |
onSubmit={ this.handleFilterChange } | |
/> | |
), | |
}], | |
[TableColumns.SUPPLIER_NAME, { | |
filterDropdown: ( | |
<FilterDropdown.Text | |
column={ TableColumns.SUPPLIER_NAME } | |
onSubmit={ this.handleFilterChange } | |
/> | |
), | |
}], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment