I am able to add custom html dropdown in context menu. On change of user selection from that dropdown i want to perform some operation.
Below is the snippet.
“custom”: {
name: ' <select> <option value="test1">Test1</option> <option value="test2">Test2</option> <option value="test3">Test3</option> <option value="test4">Test4</option> </select> '
,
callback: function(key, options) {
console.log('key '+JSON.stringify(key));
console.log('options '+JSON.stringify(options));
},
disabled: true,
When i do not add “disabled: true”, i can see logs being printed on console. But it happens on every click of drop down, not allowing to select anything. When i add “disabled: true”, i am able to select the options from dropdown, but nothing happens. Even the logs inside callback does not get printed(I want to call some custom method on change of selection from drop down).
Is there any way to achieve this?