Forum Discussion

Rkile's avatar
Rkile
Cloud Apps
09-30-2022

Text Box Orientation

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

Replies have been turned off for this discussion
    • Rkile's avatar
      Rkile
      Cloud Apps

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

       

      "style": {

           "writing-mode": 'tb-rl"

      }

      code?

    • Rkile's avatar
      Rkile
      Cloud Apps

      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's avatar
        harikm007
        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:

         

        -Hari