最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Ag-Grid cell editing issue in React - Stack Overflow

programmeradmin1浏览0评论

I am new to Ag-grid and am trying to create a basic table using Ag-grid and React. I am wanting to have some of my cells to be editable while some not. I tried using the source code from API docs, but it still wouldn't work.

I tried adding this:

`const defaultColDef = {
    editable: (params) => params.data.rowIndex === 2 || params.data.rowIndex === 3,
    resizable: true,
    sortable:false
  };`

However this seems to make no change to the table.

发布评论

评论列表(0)

  1. 暂无评论