This dashboard script hide a specific widget row when exporting to PDF.
dashboard.on('widgetready', function (se, ev) {
//widgetid to hide from PDF
widgetid = '3aecd1801eafb16865d4c87lre'
if(ev.widget.oid == widgetid)
{
$('[widgetid=' + widgetid + ']').closest('.u-r').height(0)
}
});
Note : This script will hide widget from PDF only, not from email reports.
Comments