Skip to content

[feat]: Add support for readOnly property in ColumnDef meta #245

@Abdelhak-Boudhibi

Description

@Abdelhak-Boudhibi

Feature description

I would like to request a built-in cell editing feature for the DiceUI DataGrid component.

Currently, inline editing requires implementing custom logic per cell (handling focus, input state, commit/cancel, validation, etc.), which becomes repetitive and complex for common CRUD use cases.

Providing first-class support for editable cells would greatly improve developer experience and make DiceUI more suitable for admin panels, dashboards, and data-management apps.

Proposed Capabilities

  • Enable/disable editing per column
  • Enable/disable editing per row or cell

Suggested API (example)

const columns = [
  {
    accessorKey: "id",
    header: "ID",
    editable: false
  },
  {
    accessorKey: "name",
    header: "Name",
    editable: true,
    editor: "text",
    onCommit: (value, row) => {
      // persist change
    }
  }
];

Additional Context

Additional details here...

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues and PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions