com.olvind.mui.react.mod.UIEvent.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.react.mod
import org.scalajs.dom.EventTarget
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait UIEvent[T, E]
extends StObject
with BaseSyntheticEvent[E, EventTarget & T, EventTarget] {
var detail: Double
var view: AbstractView
}
object UIEvent {
inline def apply[T, E](
bubbles: Boolean,
cancelable: Boolean,
currentTarget: EventTarget & T,
defaultPrevented: Boolean,
detail: Double,
eventPhase: Double,
isDefaultPrevented: () => Boolean,
isPropagationStopped: () => Boolean,
isTrusted: Boolean,
nativeEvent: E,
persist: () => Unit,
preventDefault: () => Unit,
stopPropagation: () => Unit,
target: EventTarget,
timeStamp: Double,
`type`: String,
view: AbstractView
): UIEvent[T, E] = {
val __obj = js.Dynamic.literal(bubbles = bubbles.asInstanceOf[js.Any], cancelable = cancelable.asInstanceOf[js.Any], currentTarget = currentTarget.asInstanceOf[js.Any], defaultPrevented = defaultPrevented.asInstanceOf[js.Any], detail = detail.asInstanceOf[js.Any], eventPhase = eventPhase.asInstanceOf[js.Any], isDefaultPrevented = js.Any.fromFunction0(isDefaultPrevented), isPropagationStopped = js.Any.fromFunction0(isPropagationStopped), isTrusted = isTrusted.asInstanceOf[js.Any], nativeEvent = nativeEvent.asInstanceOf[js.Any], persist = js.Any.fromFunction0(persist), preventDefault = js.Any.fromFunction0(preventDefault), stopPropagation = js.Any.fromFunction0(stopPropagation), target = target.asInstanceOf[js.Any], timeStamp = timeStamp.asInstanceOf[js.Any], view = view.asInstanceOf[js.Any])
__obj.updateDynamic("type")(`type`.asInstanceOf[js.Any])
__obj.asInstanceOf[UIEvent[T, E]]
}
@scala.inline
implicit open class MutableBuilder[Self <: UIEvent[?, ?], T, E] (val x: Self & (UIEvent[T, E])) extends AnyVal {
inline def setDetail(value: Double): Self = StObject.set(x, "detail", value.asInstanceOf[js.Any])
inline def setView(value: AbstractView): Self = StObject.set(x, "view", value.asInstanceOf[js.Any])
}
}