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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Browser
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- 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
- 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 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
fto the Browser using Context.Access.Applies
fto the Browser using Context.Access.- elements
evalJs uses this mapping to search elements on the client side.
- 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 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.
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
Example: - def file(id: ElementId, file: (String, Array[Byte])): Browser
Add
filetoid. - def files(id: ElementId, filesList: (String, Array[Byte])*): Browser
Set files at
idtofilesList. - val filesMap: Map[ElementId, Map[String, Array[Byte]]]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def form(id: ElementId, fields: (String, String)*): Browser
- def form(id: ElementId, data: FormData): Browser
- val forms: Map[ElementId, FormData]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jsMocks: List[String]
- def mockJs(script: String): Browser
- 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 properties: Map[(ElementId, String), String]
- def property(id: ElementId, name: String, value: String): Browser
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def value(id: ElementId, value: String): Browser
- 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()