case class StyleDeclaration(selector: StyleSelector, styles: Map[String, String]) extends Product with Serializable
Represents a single style declaration.
- selector
the selector to determine which elements this declaration applies to
- styles
the styles themselves in a map representing the names and values of each style
- Alphabetic
- By Inheritance
- StyleDeclaration
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StyleDeclaration(selector: StyleSelector, styles: Map[String, String])
- selector
the selector to determine which elements this declaration applies to
- styles
the styles themselves in a map representing the names and values of each style
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def appliesTo(element: Element, parents: Seq[Element]): Boolean
Indicates whether this style declaration applies to the specified target element.
Indicates whether this style declaration applies to the specified target element.
- element
the target element to apply the selector of this style declaration to
- parents
the parents of the specified target element, which also need to match in case the selector of this declaration has parent selectors.
- returns
true if this style declaration applies to the target element
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def increaseOrderBy(amount: Int): StyleDeclaration
Returns a new style declaration with the order parameter in its Specificity property increased by the specified amount.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val selector: StyleSelector
- val styles: Map[String, String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()