Position

@ExperimentalCoroutinesApi()
interface Position : StyleParams

This context interface offers two functions to specify the positional appearance of an element.

  • zIndex for arranging elements among the z-axis to bring them to the back or the front of the screen

  • position for the positioning an element within its context

There are two variants for each of those functions; one for applying to all media devices at once and another to specify the functionality for each media device independently.

Functions

equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
position
Link copied to clipboard
js
open fun position(value: PositionContext.() -> Unit)
This function sets the position CSS property of an element for all media devices at once.
open fun position(sm: PositionContext.() -> Unit? = null, md: PositionContext.() -> Unit? = null, lg: PositionContext.() -> Unit? = null, xl: PositionContext.() -> Unit? = null)
This function sets the position CSS property of an element for each media device independently.
toString
Link copied to clipboard
js
open fun toString(): String
zIndex
Link copied to clipboard
js
open fun zIndex(value: ZIndicesProperty)
This function sets the z-index CSS property of an element for all media devices at once.
open fun zIndex(sm: ZIndicesProperty? = null, md: ZIndicesProperty? = null, lg: ZIndicesProperty? = null, xl: ZIndicesProperty? = null)
This function sets the z-index CSS property of an element for each media device independently.

Properties

lgProperties
Link copied to clipboard
js
abstract val lgProperties: StringBuilder
collects the properties for large screens
mdProperties
Link copied to clipboard
js
abstract val mdProperties: StringBuilder
collects the properties for middle-sized screens
smProperties
Link copied to clipboard
js
abstract val smProperties: StringBuilder
collects the properties for small screens
xlProperties
Link copied to clipboard
js
abstract val xlProperties: StringBuilder
collects the properties for extra-large screens

Inheritors

BasicParams
Link copied to clipboard