grid

open fun grid(value: GridContext.() -> Unit)

This function opens the context for defining the grid layout related properties for a grid layout child component for all media devices.

This function does not create a layout itself; for the latter have a look at GridLayout functions!

Example call:

grid {
// some functions of [GridContext] with appropriate values for *all devices*
}

See also

Parameters

value

extension function parameter to bring the specialized topical functions of the GridContext into the scope of the functional expression

open fun grid(sm: GridContext.() -> Unit? = null, md: GridContext.() -> Unit? = null, lg: GridContext.() -> Unit? = null, xl: GridContext.() -> Unit? = null)

This function opens the context for defining the grid layout related properties for a grid layout child component for each media device independently.

This function does not create a layout itself; for the latter have a look at GridLayout functions!

Example call:

grid {
// some functions of [GridContext] with appropriate values for *all devices*
}

See also

Parameters

lg

extension function parameter to bring the specialized topical functions of the GridContext into the scope of the functional expression for large media devices

md

extension function parameter to bring the specialized topical functions of the GridContext into the scope of the functional expression for medium sized media devices

sm

extension function parameter to bring the specialized topical functions of the GridContext into the scope of the functional expression for small media devices

xl

extension function parameter to bring the specialized topical functions of the GridContext into the scope of the functional expression for extra large media devices