primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.91k stars 1.05k forks source link

ColumnProps type definition missing rowData property #2013

Closed rubychill closed 2 years ago

rubychill commented 3 years ago

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior When using the editor prop in Column it is missing the rowData property that is shown in examples (and is present during runtime). It seems that ColumnProps type definition is missing rowData property. This causes typescript errors when trying to type props correctly.

Expected behavior ColumnProps type definition should match what is present during runtime.

Minimal reproduction of the problem with instructions https://codesandbox.io/s/primereact-test-forked-ggz4n

melloware commented 2 years ago

I fixed your code sandbox you need to use ColumnEditorOptions

https://codesandbox.io/s/primereact-test-forked-1oyooo?file=/src/index.tsx