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
topKey
the CSS-property for the top
leftKey
the CSS-property for the left
bottomKey
the CSS-property for the bottom
rightKey
the CSS-property for the right
styleParams
basic context scope interface
target
the defined output StringBuilder to write the generated CSS into
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
mdProperties
Link copied to clipboard
smProperties
Link copied to clipboard
styleParams
Link copied to clipboard
xlProperties
Link copied to clipboard