Camantea
12-14-2022Cloud Apps
Automated Widget Titles
Hi All,
I am wondering if anyone has had any success in automating the title of a widget within a dash using the widget script. I am trying to have the title update the month automatically when a filter is applied. For example, trying to show "November Sales Trend" and have this title update when a new filter for the month of sale is selected. I found the below script would work for adjusting the title, but just need the script to grab the Current Month now.
widget.on('ready', function(w,e){
prism.activeWidget.title= 'November Venue Sales' /* this changes the title
})
Thanks in advance for any suggestions!