Skip to Main Content

Variable Cards

Employees

  • #CARD_INITIALS#

    Bock, Rebecca

    #CARD_SUBTITLE#

    eschenk@mai.com
    +497418623018
  • #CARD_INITIALS#

    Lehmann, Sara

    #CARD_SUBTITLE#

    klauspeter87@mail.de
    +492911163957

Steps

1. Create a page Process (Before Header)

apex_css.add (
    p_css => '@media (min-width: 768px) {
                .t-Cards--4cols {
                  grid-template-columns: repeat('||:P10_MAX_CARDS_PER_ROW||', 1fr) !important; 
                }
              }',
    p_key => 't-Cards--4cols' );
}

2. Compute the number of max cards per line

In this example it is just the value of the radio group