Packages

o

react.vdom

styling

object styling

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. styling
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. 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) or document.getElementById. You can use the psuedo-selector name of :root for the HTML element.

    Annotations
    @inline()
  2. def merge(styles: StyleAttr*): StyleAttr

    Merge styles left to right.

    Merge styles left to right. Right takes higher precedence.

    Annotations
    @inline()
  3. 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()
  4. 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()
  5. 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()