Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to pass method to disable row edit in custom editor ? #369

@Ezekiah

Description

@Ezekiah

Hello,
Like onValue is passed on the custom editor, I would like to know if I can pass a method such as onDeactivate to disable editing on a cell ?

const editable = edit.edit({
...
onDeactivate:({ value, rowData, property }) => {
      const index = findIndex(this.state.rows, { id: rowData.id });
      const rows = cloneDeep(this.state.rows);
      rows[index].editing = false;
      this.setState({ rows });
    },

....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions