Forum Discussion
harikm007
02-13-2023Data Warehouse
Hi zohebakber soporteparaptx prakashp ,
I couldn't reproduce this issue may be because I don't have latest version. But I'm trying to provide an alternate solution until Sisense fix this issue in the new version.
I couldn't test this script. So can anyone try and let me know if this woks? The idea here is to add some extra space at the beginning of title. Update the variable widgetIdList with list of widgetIds.
dashboard.on('widgetrefreshed', function (se, ev) {
let widgetIdList = ['636e6c5e85a029002e9d6d35', '6371fc9e85a029002e9d6d6a'] //list of widget IDs
let spanElement = '<span> </span>'
if(widgetIdList.includes(ev.widget.oid))
{
if($(`widget[widgetid="${ev.widget.oid}"] .transput-caption span`)[0] == undefined)
$(`widget[widgetid="${ev.widget.oid}"] .transput-caption`).prepend(spanElement)
if($(`widget[widgetid="${ev.widget.oid}"] widget-title span`)[0] == undefined)
$(`widget[widgetid="${ev.widget.oid}"] widget-title`).prepend(spanElement)
}
})
-Hari