Skip to content

Conversation

nstepien
Copy link
Collaborator

@nstepien nstepien commented Apr 22, 2020

I've also made it so editable: false disables the editor, whether we have an editor or not.

@nstepien nstepien requested a review from amanmahajan7 April 22, 2020 13:22
@nstepien nstepien self-assigned this Apr 22, 2020
@nstepien nstepien force-pushed the use-column-editable-instead branch from bf2e479 to f7112c6 Compare April 22, 2020 13:45
// Logic extented to allow for functions to be passed down in column.editable
// this allows us to decide whether we can be editing from a cell level
export function canEdit<R, SR>(column: Column<R, SR>, row: R): boolean {
if (typeof column.editable === 'function') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should move canEdit to selectedCellUtils.ts. It is only used once

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@nstepien nstepien requested review from qili26 and removed request for qili26 October 27, 2020 15:02
@nstepien nstepien merged commit 6eac41e into canary Oct 29, 2020
@nstepien nstepien deleted the use-column-editable-instead branch October 29, 2020 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants