Skip to main content
May 10, 2022
Question

Column Layout width

  • May 10, 2022
  • 3 replies
  • 1 view

Can we give width if columnlayout/ Card layout in percentage? 

    3 replies

    gopalk2865
    Participating Frequently
    May 10, 2022

    Hi Harsh, it's not possible to provide width in percentage. You would need to use Appian provided values to control the width.

    Inspiring
    May 10, 2022

    No. If you want to adjust your columns width based on screen size you can use a!isPageWidth() function to pass different widths depends on screen size. 

    arulk0002
    Inspiring
    May 15, 2022

    Hi Harsh,

    It's not possible to use percentage. If you want to make responsive column please use the stackWhen property.

    Ex:

    {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {},
    )
    },
    stackWhen: {
    "TABLET_PORTRAIT",
    "TABLET_LANDSCAPE",
    "DESKTOP_NARROW",
    "DESKTOP",
    "DESKTOP_WIDE",
    "NEVER"
    }
    )
    }