verticalAlign

open fun verticalAlign(value: VerticalAlignValues.() -> VerticalAlignProperty)

This function sets the vertical-align property of a component for all media devices.

example calls:

verticalAlign { top } // use a predefined value
verticalAlign { "1em" } // provide a custom value

Parameters

value

extension function parameter to bring the predefined values of VerticalAlignValues into the scope of the functional expression

open fun verticalAlign(sm: VerticalAlignValues.() -> VerticalAlignProperty? = null, md: VerticalAlignValues.() -> VerticalAlignProperty? = null, lg: VerticalAlignValues.() -> VerticalAlignProperty? = null, xl: VerticalAlignValues.() -> VerticalAlignProperty? = null)

This function sets the vertical-align property of a component for each media device independently.

example calls:

verticalAlign { top } // use a predefined value
verticalAlign { "1em" } // provide a custom value

Parameters

lg

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

md

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

sm

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

xl

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