repeat

fun repeat(count: Int, value: GridTemplateContext.() -> Property): String

Function to create the CSS repeat function.

This variant is specialized for integer based repetition.

If you want to pass a predefined value like minContent or alike, use the other variant.

Parameters

count

amount of cells / cell patterns to repeat

value

extension function parameter in order to bring the predefined values from GridTemplateContext into the scope of the functional expression

fun repeat(count: Property, value: GridTemplateContext.() -> Property): String

Function to create the CSS repeat function.

This variant is specialized for property based repetition, which works best if you want to apply one of the predefined values like minContent or similar.

If you want to pass an integer value use the other variant.

Parameters

count

property of cells / cell patterns to repeat; best used with the predefined properties of this class like autoFill or similar.

value

extension function parameter in order to bring the predefined values from GridTemplateContext into the scope of the functional expression