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
{ a!columnsLayout( columns: { a!columnLayout( contents: { a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Button", style: "NORMAL" ) }, align: "START" ) } ), a!columnLayout( contents: {} ), a!columnLayout( contents: {} ) } ) }
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: {} ) } ) }
Please clarify if it is a column layout or a grid column. But in either of the cases, you can! If you face a problem, please attach the code.
a!columnLayout( contents: { a!buttonArrayLayout( buttons: { a!buttonWidget(label: "Button Label") } ) } )
You can, but have to use the right level of nesting and using the correct syntax as suggested by other members.
thanks sir