Custom order of the Options in Custom Context Menu

Tags: #<Tag:0x00007f0b02495020>

Hi there again,

I love the context menu, but I would like to control the order of which the options appear, instead of the automatic alphabetical sort. Do you know if this is possible?

Thanks,
Marc

Hi Marc,

You can define options in the array (if you do not use any self-made options).

example
contextMenu: ['row_above', 'row_below', 'remove_row']
https://jsfiddle.net/mztjrLc0/
image

Here’s a list of keys to use in a menu https://handsontable.com/docs/7.2.1/demo-context-menu.html (mostly they also work for the dropdown menu).

Hey Aleksandra,

I am actually only using self-made options. Is it possible to custom order these?

Best,
Marc

Can you share the configuration that you use and described the desired result in details? I will help you to recreate the menu.

Feel free to close this for now, I ended up going a different route. Thank you though.

1 Like

Thank you for update. Closing.