Card Choices Interface Component

Certified Associate Developer

I am trying to use a!cardChoiceField but need capability to adjust the size of the cards, specifically make them wider. The documentations says to put the card choices component in a columns layout with a specified width to control the number of cards in each row. How do I do it?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    A Score Level 1
    in reply to annab9875

    Hi Anna

    If I understood your concern correctly, you may try this suggestion.

    In the a!cardChoiceField() set the data which you want to see in your first row and place them into a a!columnLayout() then to do the same for second set of data and so on as shown in the below figure. This way you can control how many items you want to show in a row and also their width. This is ideal to use when the data is not huge.

    In my example the first set of data was {Apple,Mango,Banana} defined in the first ColumnsLayout
    the second set of data {Dog,Cat} was defined in the second ColumnsLayout

    Hope this helps.