ResponsiveValue

class ResponsiveValue(sm: Property, md: Property, lg: Property, xl: Property)

Defines a responsive Property that can have different values for different screen sizes. Per default the value for a certain screen size is the same as the value for the next smaller screen size. You can define the concrete screen sizes that apply in the Theme you use.

Parameters

lg

value for large screens (and default for all the others)

md

value for middle screens like tablets (and default for all the others)

sm

value for small screens like phones (and default for all the others)

xl

value for extra large screens (and default for all the others)

Constructors

ResponsiveValue
Link copied to clipboard
js
fun ResponsiveValue(sm: Property, md: Property = sm, lg: Property = md, xl: Property = lg)
value for small screens like phones (and default for all the others)

Functions

equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
toString
Link copied to clipboard
js
open fun toString(): String

Properties

lg
Link copied to clipboard
js
val lg: Property
value for large screens (and default for all the others)
md
Link copied to clipboard
js
val md: Property
value for middle screens like tablets (and default for all the others)
sm
Link copied to clipboard
js
val sm: Property
value for small screens like phones (and default for all the others)
xl
Link copied to clipboard
js
val xl: Property
value for extra large screens (and default for all the others)