Skip to Main Content

Variable Cards

Employees

  • #CARD_INITIALS#

    Riedl, Adelheid

    #CARD_SUBTITLE#

    swen.hiller@rapp.de
    +498115447285
  • #CARD_INITIALS#

    Stock, Reinhardt

    #CARD_SUBTITLE#

    sauter.siegmar@freund.de
    +49696082840

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