cancel
Showing results for 
Search instead for 
Did you mean: 

Text Box Orientation

Rkile
8 - Cloud Apps
8 - Cloud Apps

Hello,

I am looking to change a Text Box's Orientation to show the text as vertical instead of Horizontal.  Is this accomplishable via Blox?

 

Thanks,

Ryan

4 REPLIES 4

harikm007
13 - Data Warehouse
13 - Data Warehouse

Hi @Rkile ,

Are looking for something like this?

harikm007_0-1664559808878.png

 

-Hari

 

That looks like what I am looking for! Thank you. Just add in the:

 

"style": {

     "writing-mode": 'tb-rl"

}

code?

How would I got about utilizing this but instead of utilizing a panel just type in the text?  Also looking to align in the center and middle of the widget.

 

harikm007
13 - Data Warehouse
13 - Data Warehouse

Here is a sample script:

{
    "style": "",
    "script": "",
    "title": "",
    "showCarousel": true,
    "body": [
        {
            "spacing": "medium",
            "type": "Container",
            "items": [
                {
                    "spacing": "small",
                    "type": "TextBlock",
                    "text": "Sample text",
                    "color": "default",
                    "horizontalAlignment": "center",
                    "style": {
                       "transform": "rotate(-90deg)"

                    }
                }
            ]
        }
    ],
    "actions": []
}

Result:

harikm007_0-1664804193130.png

 

-Hari