cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Introduction
This post will give the JavaScript necessary to format the Widget Title.
Purpose/Benefits
When formatting your dashboard, manipulating the Widget Title to match your other formatting will give the dashboard a more personalized feel.
Example
Steps
Use the JavaScript below to manipulate the title.
/********************************************************/
/********Change Widget Title Font and Size**********/
/********************************************************/
widget.on('ready', function(w,e){

var color = '#ffcb05'; 
var fontSize = '20px' 
var fontWeight = 'bold'

var $widgetTitle = $('widget-title', element.parent());
var newCSS = { 
'color':color, 
'font-size':fontSize, 
 'font-weight':fontWeight
 
 
}
$widgetTitle.css(newCSS);
})
To change a widget's title altogether use:
widget.on('ready', function(w,e){ 
prism.activeWidget.title='My New Title' 
})
Version history
Last update:
‎03-02-2023 09:06 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

Sisense Privacy Policy