NSWDPC\GridHelper\Extensions\ElementChildGridExtension::ColumnClass
Return the CSS class representing a grid
Signature
public function ColumnClass([int|null
$lg = NULL,
[integer
$max = 12,
[integer
$xs = 1,
[integer
$sm = 2,
[integer
$md = 3,
[mixed
$xl = NULL]]]]]] )
Parameters
$lg
—
object
- the number of large columns eg 3. Default=null meaning defer to the selected CardColumns value
$max
—
integer
- the max grid size. Used to work out the CSS class. $max/$lg = grid 'width'
$xs
—
integer
- number of columns at XS media size, default = 1 col @ 100% width
$sm
—
integer
- number of columns at SM media size, default = 2 cols @ 50% width
$md
—
integer
- number of columns at MD media size, default = 3 cols @ 33.3% width
$xl
—
mixed
- number of columns at XL media size, if supported, default = none