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
def access[F[_], S, M](initialState: S, f: Access[F, S, M] => F[Unit], eventData: String, elements: Map[Id, ElementId])(`evidence$2`: Effect[F]): F[Seq[Action[F, S, M]]]
Applies f to the Browser using Context.Access.
Applies f to the Browser using Context.Access.
- Value Params
- elements
evalJs uses this mapping to search elements on the client side.
def event[F[_], S, M](state: S, dom: Node[Binding[F, S, M]], event: String, target: PseudoHtml => Option[Id], eventData: String)(`evidence$1`: Effect[F]): 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, )