Skip to content

MaterialDesignJsVeiwRenderer / view.utils.elementCss.properties / Dimension

Dimension

open class Dimension :CssValue,CssProperty

Represents a CSS dimension property such as width and height.

Types

Unit
enum class Unit :CssValue

Constructors

<init>
Dimension(propertyName:String)``Dimension(value:Double?, unit:Unit?, propertyName:String)
Represents a CSS dimension property such as width and height.

Properties

isSet
val isSet:Boolean

propertyName
val propertyName:String

unit
var unit:Unit?

value
var value:Double?

Functions

applyToStyle
open fun applyToStyle(element: <ERROR CLASS>):Unit
Sets the element's corresponding css property value

cssString
open fun cssString():String
This method is generally used in enums representing Css values. It facilitates the conversion from enum value to css string value. For more specific cases, overriding this method is necessary.

set
fun set(pair: <ERROR CLASS><Double,Unit>):Unit

Companion Object Properties

AUTO
val AUTO: <ERROR CLASS>

MAX_CONTENT
val MAX_CONTENT: <ERROR CLASS>

MIN_CONTENT
val MIN_CONTENT: <ERROR CLASS>

ZERO
val ZERO: <ERROR CLASS>