komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more
http://ka-table.com
MIT License
788 stars 58 forks source link

Column in ITableProps does not contain the property 'editor' #380

Closed cryptrr closed 9 months ago

cryptrr commented 9 months ago

From the docs.

const tableProps: ITableProps = {
  columns: [
    {
      dataType: DataType.String,
      editor: CustomLookupEditor,
      key: 'passed',
      title: 'Passed',
    }
  ],
};

Object literal may only specify known properties, and 'editor' does not exist in type 'Column'.

The example in the docs is not working.

I can do it with cellEditor:{} block inside ChildComponents. But the docs is confusing here.

komarovalexander commented 9 months ago

docs updated, thank you!