'In ag-grid How to add an attribute for showing/hiding a MenuItem given a condition?
When a MenuItem is added either to the ContextMenu or ColumnMenu, I would like an attribute for showing or hiding the element given a condition. Expected behavior: For instance: MenuItem
{
name: "Alert " + params.value,
shown: true // an attribute like this!
disabled:false;
action: function() {
window.alert("Alerting about " + params.value);
},
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|