I am using handsontable for react. I currently have an anonymous function defining one of my columns:
columns: [...
{
data: (e) => (e.mark !== null ? e.mark.price : ""),
type: "numeric",
},
...
],
When I use the hook afterSetDataAtCell, the column parameter is an unwieldy e => e.mark !== null ? e.mark.price : "" rather than the column index or a simple string like price. How can I set the column name so the parameter passed to afterSetDataAtCell is either an integer index or simple string?