wrap

open fun wrap(value: WrapValues.() -> WrapProperty)

This function sets the flex-wrap property for all media devices.

Example call:

wrap { nowrap }

Parameters

value

extension function parameter to bring the predefined properties of WrapValues into the scope of the functional expression

open fun wrap(sm: WrapValues.() -> WrapProperty? = null, md: WrapValues.() -> WrapProperty? = null, lg: WrapValues.() -> WrapProperty? = null, xl: WrapValues.() -> WrapProperty? = null)

This function sets the flex-wrap property for each media device independently.

Example call:

wrap(
sm = { wrap }
lg = { nowrap }
)

Parameters

lg

extension function parameter to bring the predefined properties of WrapValues into the scope of the functional expression for large media devices

md

extension function parameter to bring the predefined properties of WrapValues into the scope of the functional expression for medium sized media devices

sm

extension function parameter to bring the predefined properties of WrapValues into the scope of the functional expression for small media devices

xl

extension function parameter to bring the predefined properties of WrapValues into the scope of the functional expression for extra large media devices