I have a use case where i set visible false to items in context-menu based on some logic, now i want to hide the unnecessary separator above it . I tried the below code. It does not work. :(
"separator5": {
type: "cm_separator",
visible: function (data) {
if (//some condition, when true i want to hide the separator) {
return false;
} else {
return true;
}
},
},
Hi All .
I have a use case where i set visible false to items in context-menu based on some logic, now i want to hide the unnecessary separator above it . I tried the below code. It does not work. :( "separator5": { type: "cm_separator", visible: function (data) { if (//some condition, when true i want to hide the separator) { return false; } else { return true; } }, },