Open EndBug opened 3 months ago
Fix for the issue “Interface or type missing for Column Template Event Handler” had been rolled out in our weekly patch release. So you can upgrade to version(26.2.14) or to the latest version of Syncfusion package to resolve the reported issue.
ColumnTemplateArgs
interface can be used to achieve your requirement.
Refer to the below screenshot,
Release notes: https://ej2.syncfusion.com/react/documentation/release-notes/26.2.14?type=all#tree-grid
Hey folks, it would be nice to have better typedefs for the
template
prop of theColumnDirective
component.Right now the type is limited to
string | Function | any
, but that doesn't provide any info about the parameters accepted by the function. This info is not present in the docs either (React docs, API docs), you can find out about it only by inspecting the value at runtime.Just to give an example of what I would be looking for in the types, here's the patch I've made for my project:
This is just a very rough version, but it's just enough to "patch" the type like this: