Format all widget titles using Dashboard Script

Comments

1 comment

  • Avatar
    Elliott Herz

    Here's kind of a way to do it. It's not perfect, and was pretty quick, but does basically what you want. Maybe the text alignment can be better.

     

    dashboard.on('widgetinitialized', (el, args) => {
    $('widget-header')
    .css('background-color', 'yellow')
    .css('color', 'black')
    .css('font-family', 'Arial')
    .css('font-weight', 'bold');

    $('.widget-title__holder')
    .css('font-size', '16px')
    .css('padding-left', '38%');
    });

    Hope this helps!
    Best, Elliott

Please sign in to leave a comment.