cancel
Showing results for 
Search instead for 
Did you mean: 

Non Repeating Blox Header

cartercjb
10 - ETL
10 - ETL

Hi Community!

I have the following blox widget based on this code:

{
    "style": ".blox-slides:not(:first-child) .blox-pivot-title{display:none} .blox-slides .blox-pivot-title{margin-bottom:10px; font-weight:bold; color:black; font-size:1em}",
    "titleStyle": [
        {
            "display": "none"
        }
    ],
    "showCarousel": false,
    "body": [
        {
            "spacing": "",
            "type": "Container",
            "width": "95%",
            "style": {
                "margin": "0 auto"
            },
            "items": [
                {
                    "type": "TextBlock",
                    "text": "<span>TPM BILLABLE HOURS</span>",
                    "horizontalAlignment": "center",
                    "weight": "light",
                    "size": "large",
                    "style": {
                        "background-color": "#006374",
                        "border-radius": "5px",
                        "padding-top": "5px",
                        "padding-bottom": "5px",
                        "text-align": "center",
                        "color": "#ffffff"
                    }
                },
                {
                    "type": "ColumnSet",
                    "spacing": "none",
                    "separator": false,
                    "columns": [
                        {
                            "type": "Column",
                            "spacing": "small",
                            "separator": false,
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "style": {
                                        "backgroundColor": "#a90a40",
                                        "color": "#ffffff",
                                        "size": "large"
                                    },
                                    "class": "blox-pivot-title",
                                    "separator": false,
                                    "horizontalAlignment": "center",
                                    "vertical-align": "middle",
                                    "text": "TPM",
                                    "backgroundColor": "blue"
                                },
                                {
                                    "type": "TextBlock",
                                    "weight": "light",
                                    "horizontalAlignment": "left",
                                    "separator": false,
                                    "spacing": "none",
                                    "text": "{panel:Therapist}",
                                    "style": {
                                        "border-right": "1px solid #a7a7a7",
                                        "border-left": "1px solid #a7a7a7",
                                        "border-bottom": "1px solid #A7A7A7",
                                        "padding": "5px 5px 5px 5px"
                                    }
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "separator": false,
                            "spacing": "small",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "style": {
                                        "backgroundColor": "#a90a40",
                                        "color": "#ffffff"
                                    },
                                    "class": "blox-pivot-title",
                                    "horizontalAlignment": "center",
                                    "separator": false,
                                    "text": "Billable Hours"
                                },
                                {
                                    "type": "TextBlock",
                                    "horizontalAlignment": "center",
                                    "separator": false,
                                    "weight": "light",
                                    "spacing": "none",
                                    "text": "{panel:Billable Hours}",
                                    "style": {
                                        "border-right": "1px solid #a7a7a7",
                                        "border-left": "1px solid #a7a7a7",
                                        "border-bottom": "1px solid #A7A7A7",
                                        "padding": "5px 5px 5px 5px"
                                    }
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "spacing": "small",
                            "separator": false,
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "style": {
                                        "backgroundColor": "#a90a40",
                                        "color": "#ffffff"
                                    },
                                    "class": "blox-pivot-title",
                                    "separator": false,
                                    "weight": "bold",
                                    "horizontalAlignment": "center",
                                    "text": "Drill Down"
                                },
                                {
                                    "type": "ActionSet",
                                    "separator": false,
                                    "spacing": "none",
                                    "style": {
                                        "border-right": "1px solid #a7a7a7",
                                        "border-left": "1px solid #a7a7a7",
                                        "border-bottom": "1px solid #A7A7A7",
                                        "padding": "0px 2px 0px 2px"
                                    },
                                    "actions": [
                                        {
                                            "type": "JTD",
                                            "style": {
                                                "font-size": "13px",
                                                "color": "#99b52c",
                                                "background-color": "#ffffff",
                                                "vertical-align": "top"
                                            },
                                            "title": "PRODUCTIVITY DETAIL",
                                            "data": {
                                                "dashboardId": "6234dad0be4b2e2fc893b372",
                                                "args": {
                                                    "displayDashboardsPane": false,
                                                    "displayFilterPane": false,
                                                    "displayToolbarRow": false,
                                                    "displayHeaderRow": false
                                                }
                                            }
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}

This looks something like this:

cartercjb_1-1649095612143.png

How can I update this so that the TPM BILLABLE HOURS text header does not repeat when multiple TPMs are active in the data?

Thanks!

-Carter

1 ACCEPTED SOLUTION

harikm007
12 - Data Integration
12 - Data Integration

@cartercjb ,

Add class 'blox-pivot-title' in first TextBlock

harikm007_0-1649097547176.png

 

-Hari

 

View solution in original post

3 REPLIES 3

harikm007
12 - Data Integration
12 - Data Integration

@cartercjb ,

Add class 'blox-pivot-title' in first TextBlock

harikm007_0-1649097547176.png

 

-Hari

 

That worked perfectly, @harikm007 . Any idea why the 3 columns are not aligning correctly?

cartercjb_0-1649101718217.png

 

harikm007
12 - Data Integration
12 - Data Integration

@cartercjb ,

Please specify width for each Column:

harikm007_0-1649151540445.png

-Hari

 

Voice of Customer
Impact Business Intelligence (BI) and Analytics Market Research

Click Here & Complete Dresner's Wisdom of Crowds® Market Study Survey Today!

Community Toolbox

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

Need additional support?:

Community Support Request

Don't miss out:

Earn a BETA Launch Challenge Badge!