How to get reference to column that has been moved?

Tags: #<Tag:0x00007f8b1ccd38a0>

I have my columns loaded dynamically and have the manualMoveColumn set to true.
This correctly moves the column for me, however, now I want to still use the menu item for “Delete Column”.

For this action, I am getting the column index, and then using
var col = this.hotTableComponent.current.columnSettings[colindex[0][1]]; to get the column.

However, this continues to refer to the previous column, not the current column that was moved.
How can I get a reference to the column after it’s been moved?

never mind, I was able to use the colToProp to get the binding of the data column, which I could then use to query my datasoruce to get column id.

var colname = this.hotTableComponent.current.hotInstance.colToProp(colindex[0][1]);

Thank you for the update. I’m closing the topic.