{ + + // TODO: Add all event types https://www.w3schools.com/jsref/dom_obj_event.asp + def onClick(handler: dom.MouseEvent => Unit) = this.copy(onClickHandler = Some(handler)) + def onEvent(handler: dom.Event => Unit) = this.copy(onEventHandler = Some(handler)) + + def ...