Open zhongguodong opened 1 month ago
Hi @zhongguodong
When you are using an object-based dataset or/and columns
options the column addition is disabled. That option in the menu uses the alter()
method underneath.
To allow users to add a new column, you would need to create you own custom demo option. Here https://handsontable.com/docs/react-data-grid/context-menu/#context-menu-with-a-fully-custom-configuration you can find an example of a custom context menu.
@AMBudnik With an Array of objects, adding columns is prohibited. It needs to be implemented with custom menus and alter methods, is that what you mean?
Yes, that is correct @zhongguodong . Within your custom menu you would need to create an option that is altering the dataset with a new column.
@AMBudnik Array of arrays mode, the menu inside the addition of columns can be. How does this work?
If the dataset is an array of arrays you do not need to create a custom menu - the alter()
method will allow you to remove/add columns.
Describe the bug
Why is insert column left disabled when I right-click a menu option in Array of objects mode?
Video/Screenshots
Provide a link to the demo with the bug reproduction
No response
Handsontable version
14.2
Framework version
No response
Your environment
Chrome,Windows 10