Spaces Context
@ExperimentalCoroutinesApi()
Content copied to clipboard
This context class enables the definition of the common space oriented (margin and padding) styling properties.
This context is passed as receiver either by Space.margin or Space.padding functions for setting the properties for all sides at once or by Space.margins or Space.paddings functions for defining each side independently.
This usage enable styling like this:
margin { small }or alternatively
margins {
top { small }
left { normal }
}Parameters
bottomKey
the CSS-property for the bottom
leftKey
the CSS-property for the left
rightKey
the CSS-property for the right
styleParams
basic context scope interface
target
the defined output StringBuilder to write the generated CSS into
topKey
the CSS-property for the top
Constructors
SpacesContext
Link copied to clipboard
fun SpacesContext(topKey: String, leftKey: String, bottomKey: String, rightKey: String, styleParams: StyleParams, target: StringBuilder)
Content copied to clipboard
the CSS-property for the top
Functions
all
Link copied to clipboard
bottom
Link copied to clipboard
horizontal
Link copied to clipboard
left
Link copied to clipboard
right
Link copied to clipboard
top
Link copied to clipboard
vertical
Link copied to clipboard
Properties
lgProperties
Link copied to clipboard
collects the properties for large screens
mdProperties
Link copied to clipboard
collects the properties for middle-sized screens
smProperties
Link copied to clipboard
collects the properties for small screens
styleParams
Link copied to clipboard
basic context scope interface
xlProperties
Link copied to clipboard
collects the properties for extra-large screens