-
-
Notifications
You must be signed in to change notification settings - Fork 74
Conversation
editableColumn: boolean | undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the dependency on the column structure here -- we just care about the editable props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit nitpicky, but perhaps naming it columnIsEditable
is better, so that it's more clear that it's a boolean and not some sort of column object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Will update to isEditableTable and isEditableColumn
* Subscribe to [https://github.com/plotly/dash-table/issues/175](https://github.com/plotly/dash-table/issues/175) | ||
* for more information. | ||
* If the column-level `editable` flag is set it overrides | ||
* the table-level `editable` flag for that column. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating documentation for table and column editable
property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small suggestion, otherwise looks good to me!
editableColumn: boolean | undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit nitpicky, but perhaps naming it columnIsEditable
is better, so that it's more clear that it's a boolean and not some sort of column object?
isEditable(editable, columns[active_cell[1]]) && | ||
!isMetaKey(e.keyCode) | ||
) { | ||
// setProps({ is_focused: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valentijnnieman While merging, came across this little nugget of code that does nothing since the navigation work. Removing.
This fixes #175
Change isEditable logic so that a cell is editable/not editable when the cell 'isEditable' property is true/false, and use table 'isEditable' prop if undefined.
additional units tests for the editable logic