Forum Discussion

adrian_lester's avatar
adrian_lester
Cloud Apps
04-04-2022
Solved

Arranging widgets in a dashboard

I'd like to layout widgets better on my page, and I reckon I need to use blox to do that - almost like old-school HTML and divs for controlling layout (stop me if I'm wrong!) . What I can't figure o...
  • harikm007's avatar
    04-04-2022

    adrian_lester ,

    One option is to add iFrame within blox and embed widget.

    {
        "style": "",
        "showCarousel": false,
        "body": [
            {
                "type": "Container",
                "width": "50%",
                "items": [
                    {
                        "type": "TextBlock",
                        "id": "",
                        "class": "",
                        "text": "<iframe src='widget_url?embed=true' width='50%' height='600' style='border:none;overflow:hidden'></iframe>"
                    }
                ]
            },
            {
                "type": "Container",
                "width": "50%",
                "items": [
                    {
                        "type": "TextBlock",
                        "id": "",
                        "class": "",
                        "text": "<iframe src='widget_url?embed=true' width='50%' height='600' style='border:none;overflow:hidden'></iframe>"
                    }
                ]
            }
        ]
    }

    -Hari