Is it possible to hide the “Drill Here” icon if the employee has no subordinates? I tried to take the approach of custom java to determine if the box had children and then appending a css class to DrillHere. Then hide the icon in custom CSS. I am having issues, however, with the java. I think I have the CSS figured out.
Java I Tried (From this post)
renderer.onBoxRendered(function(event, box, itemData){
var itemWrap = box.$elem.closest(".poch-item-wrap");if(!itemWrap.hasClass("poch-with-subordinates")) { box.$elem.addClass("custom-class"); }
});
CSS
.custom-class .rocToolbar .rocToolbarButton.rocActionDrillHere{
display: none;
}
Any Help would be much appreciated!