cant add button widget into column component

why i cant add a button widget in a column component , it says that the column component cant take button widget 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    To use a button widget, we have to use either a button layout or a button array layout. Further, if you want to use a button inside a column, you can use the code attached below.

    {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!buttonArrayLayout(
                buttons: {
                  a!buttonWidget(
                    label: "Button",
                    style: "NORMAL"
                  )
                },
                align: "START"
              )
              
            }
          ),
          a!columnLayout(
            contents: {}
          )
        }
      )
    }

Reply
  • 0
    Certified Associate Developer

    To use a button widget, we have to use either a button layout or a button array layout. Further, if you want to use a button inside a column, you can use the code attached below.

    {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!buttonArrayLayout(
                buttons: {
                  a!buttonWidget(
                    label: "Button",
                    style: "NORMAL"
                  )
                },
                align: "START"
              )
              
            }
          ),
          a!columnLayout(
            contents: {}
          )
        }
      )
    }

Children
No Data