Event

tyrian.Event
See theEvent companion object
final case class Event[E <: Event, M](name: String, msg: E => M, preventDefault: Boolean, stopPropagation: Boolean, stopImmediatePropagation: Boolean) extends Attr[M]

Event handler

Value parameters

msg

Message to produce when the event is triggered

name

Event name (e.g. "click")

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Attr[M]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def map[N](f: M => N): Event[E, N]
def noPreventDefault: Event[E, M]
def withPreventDefault(enabled: Boolean): Event[E, M]
def withStopPropagation(enabled: Boolean): Event[E, M]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Attr -> Any
Inherited from:
Attr