case class Browser(properties: Map[(ElementId, String), String], forms: Map[ElementId, FormData], filesMap: Map[ElementId, Map[String, Array[Byte]]], jsMocks: List[String])
- Companion:
- object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Value members
Concrete methods
Applies f
to the Browser using Context.Access.
Applies f
to the Browser using Context.Access.
- Value parameters:
- elements
evalJs uses this mapping to search elements on the client side.
def event[F[_] : Effect, S, M](state: S, dom: Node[Binding[F, S, M]], event: String, target: PseudoHtml => Option[Id], eventData: String): F[Seq[Action[F, S, M]]]
Simulate event propagation on the given DOM.
Simulate event propagation on the given DOM.
- See also:
- Example:
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, )