Forum Discussion

vrice's avatar
vrice
Cloud Apps
11-14-2023
Solved

BloX Title Style Missing from PDF Report

When I create a PDF Report of my dashboard, I have noticed that the title styling for all of my BloX widgets disappears. 

Here's the relevant snippet from my BloX Editor:

    "titleStyle": [
        {
            "display": "true",
            "backgroundColor": "#F3C2A1"
        }
    ]

The background color is present when editing/viewing the dashboard - it is just missing in the PDF. 

Has anyone else experienced this issue or know of any workarounds?

Thanks!

 

  • Hi vrice,

    As a workaround, if you have 'Widget Design Styling' enabled in Admin > Feature Management, you can use the following widget script on your BloX widget to change the title style:

     

    widget.style.widgetDesign = {
        "widgetBackgroundColor": "#FFFFFF",
        "widgetTitleBackgroundColor": "#e90000",
        "widgetTitleColor": "#0057f9",
        "widgetTitleAlignment": "center",
        "widgetBorderEnabled": false,
        "widgetBorderColor": "#9EA2AB",
        "widgetCornerRadius": "none",
        "widgetShadow": "none",
        "widgetSpacing": "none",
        "widgetTitleDividerEnabled": true,
        "widgetTitleDividerColor": "#5B6372"
    }

     

    You can change the values of the properties above to fine tune the styling to your requirement.

    Let me know if this works for you?

    Thanks,

    Daniel

    RAPID BI 

    [email protected]

    RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons

2 Replies

Replies have been turned off for this discussion
  • Hi vrice,

    As a workaround, if you have 'Widget Design Styling' enabled in Admin > Feature Management, you can use the following widget script on your BloX widget to change the title style:

     

    widget.style.widgetDesign = {
        "widgetBackgroundColor": "#FFFFFF",
        "widgetTitleBackgroundColor": "#e90000",
        "widgetTitleColor": "#0057f9",
        "widgetTitleAlignment": "center",
        "widgetBorderEnabled": false,
        "widgetBorderColor": "#9EA2AB",
        "widgetCornerRadius": "none",
        "widgetShadow": "none",
        "widgetSpacing": "none",
        "widgetTitleDividerEnabled": true,
        "widgetTitleDividerColor": "#5B6372"
    }

     

    You can change the values of the properties above to fine tune the styling to your requirement.

    Let me know if this works for you?

    Thanks,

    Daniel

    RAPID BI 

    [email protected]

    RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons

    • vrice's avatar
      vrice
      Cloud Apps

      That worked perfectly. Thank you, Daniel!