Packages

case class Browser(properties: Map[(ElementId, String), String] = Map.empty, forms: Map[ElementId, FormData] = Map.empty, filesMap: Map[ElementId, Map[String, Array[Byte]]] = Map.empty, jsMocks: List[String] = Nil) extends Product with Serializable

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Browser
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Browser(properties: Map[(ElementId, String), String] = Map.empty, forms: Map[ElementId, FormData] = Map.empty, filesMap: Map[ElementId, Map[String, Array[Byte]]] = Map.empty, jsMocks: List[String] = Nil)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def access[F[_], S, M](initialState: S, f: (Access[F, S, M]) => F[Unit], eventData: String = "", elements: Map[Id, ElementId] = Map.empty)(implicit arg0: Effect[F]): F[Seq[Action[F, S, M]]]

    Applies f to the Browser using Context.Access.

    Applies f to the Browser using Context.Access.

    elements

    evalJs uses this mapping to search elements on the client side.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def event[F[_], S, M](state: S, dom: Node[Binding[F, S, M]], event: String, target: (PseudoHtml) => Option[Id], eventData: String = "")(implicit arg0: Effect[F]): F[Seq[Action[F, S, M]]]

    Simulate event propagation on the given DOM.

    Simulate event propagation on the given DOM.

    Example:
    1. def onClick(access: Access) = ???
      
      val dom = body(
        div("Hello world"),
        button(
          event("click")(onClick),
          name := "my-button",
          "Click me"
        )
      )
      
      val actions = Browser.event(
        state = myInitialState,
        dom = dom,
        event = "click"
        target = _.byName("by-button").headOption,
       )
    See also

    access

  9. def file(id: ElementId, file: (String, Array[Byte])): Browser

    Add file to id.

  10. def files(id: ElementId, filesList: (String, Array[Byte])*): Browser

    Set files at id to filesList.

  11. val filesMap: Map[ElementId, Map[String, Array[Byte]]]
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. def form(id: ElementId, fields: (String, String)*): Browser
  14. def form(id: ElementId, data: FormData): Browser
  15. val forms: Map[ElementId, FormData]
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val jsMocks: List[String]
  19. def mockJs(script: String): Browser
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. val properties: Map[(ElementId, String), String]
  25. def property(id: ElementId, name: String, value: String): Browser
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def value(id: ElementId, value: String): Browser
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped