StylePropDef
case class StylePropDef(scalaName: String, scalaAliases: List[String], domName: String, valueType: String, valueTraits: List[String], valueUnits: List[String], implName: String, commentLines: List[String], docUrls: List[String]) extends KeyDef
This type represents a CSS style property, such as "background" or "border-color"
- Value parameters:
- commentLines
- Scaladoc comment lines for this key
- docUrls
- Scaladoc documentation URLs for this key
- domName
- Native style property name in the DOM.
- implName
- Method name used to create this key from the old SDT codebase
- scalaAliases
- Aliases that should be defined linking to the main
scalaName
- Aliases that should be defined linking to the main
- scalaName
- Suggested name of this prop in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
title
tag vstitle
attribute) - avoid using up popular names for unpopular keys
- Suggested name of this prop in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
- valueTraits
- List of style traits that provide additional information about keywords and units that can be used for this property. See StyleTraitDef
- valueType
- Type of values you can write to this attribute in Scala
Note: in addition to this type, you can always write
String
into any style prop
- Type of values you can write to this attribute in Scala
Note: in addition to this type, you can always write