object styling
- Alphabetic
- By Inheritance
- styling
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def getCSSVar(vname: String, el: Element = dom.document.documentElement): String
Obtain a style attribute value.
Obtain a style attribute value. Assumes variable is at :root element via :root. Cache the CSSStyleDeclaration from window.getComputedStyle if you read frequently. Obtain an el via
document.querySelector(class)
ordocument.getElementById
. You can use the psuedo-selector name of:root
for the HTML element.- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def merge(styles: StyleAttr*): StyleAttr
Merge styles left to right.
Merge styles left to right. Right takes higher precedence.
- Annotations
- @inline()
- def mergeUnsafePropsTo(style: StyleAttr, unsafe: Dynamic): StyleAttr
Merge a StyleAttr and a js.Dyanmic assume the returned value is StyleAttr.
Merge a StyleAttr and a js.Dyanmic assume the returned value is StyleAttr.
- Annotations
- @inline()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def setCSSVar(vname: String, value: String, el: Element = dom.document.documentElement, priority: Option[String] = None): Unit
Set CSS variable on the :root element.
Set CSS variable on the :root element. Cache the computed style if you update frequently.
- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unsafeAddProp(style: StyleAttr, name: String, value: String): Dictionary[String]
Add a single style prop but it returns a dictionary since it can't be a StyleAttr anymore.
Add a single style prop but it returns a dictionary since it can't be a StyleAttr anymore.
- Annotations
- @inline()
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])