event-types

Haxe enums for javascript event types


Keywords
events, js, haxe
License
MIT
Install
haxelib install event-types 0.8.0

Documentation

Haxe Event Types

Haxe abstract enums for JavaScript event types, with documentation from MDN.

Usage

Install (haxelib)

haxelib install event-types

Example usage

import eventtypes.MouseEventType;

// ...

// Avoid using magic strings for event types:
element.addEventListener(MouseEventType.Click, myClickHandler);

Alternatively, you can import all top-level event-type definitions with:

import EventTypes;

// ...

// Avoid using magic strings for event types:
element.addEventListener(MouseEventType.Click, myClickHandler);
element.addEventListener(KeyboardEventType.KeyDown, myKeyDownHandler);

Event types included

AnimationEventType (String)

  • AnimationEnd = "animationend"
  • AnimationIteration = "animationiteration"
  • AnimationStart = "animationstart"

BatteryEventType (String)

  • ChargingChange = "chargingchange"
  • ChargingTimeChange = "chargingtimechange"
  • DischargingTimeChange = "dischargingtimechange"
  • LevelChange = "levelchange"

CallEventType (String)

  • Alerting = "alerting"
  • Busy = "busy"
  • CFStateChange = "cfstatechange"
  • CallsChanged = "callschanged"
  • Connected = "connected"
  • Connecting = "connecting"
  • Dialing = "dialing"
  • Disconnected = "disconnected"
  • Disconnecting = "disconnecting"
  • Error = "error"
  • Held = "held"
  • Incoming = "incoming"
  • Resuming = "resuming"
  • StateChange = "statechange"
  • VoiceChange = "voicechange"

ClipboardEventType (String)

  • Copy = "copy"
  • Cut = "cut"
  • Paste = "paste"

DOMMutationEventType (String)

  • DOMAttrModified = "DOMAttrModified"
  • DOMAttributeNameChanged = "DOMAttributeNameChanged"
  • DOMCharacterDataModified = "DOMCharacterDataModified"
  • DOMContentLoaded = "DOMContentLoaded"
  • DOMElementNameChanged = "DOMElementNameChanged"
  • DOMNodeInserted = "DOMNodeInserted"
  • DOMNodeInsertedIntoDocument = "DOMNodeInsertedIntoDocument"
  • DOMNodeRemoved = "DOMNodeRemoved"
  • DOMNodeRemovedFromDocument = "DOMNodeRemovedFromDocument"
  • DOMSubtreeModified = "DOMSubtreeModified"

DatabaseEventType (String)

  • Abort = "abort"
  • Blocked = "blocked"
  • Complete = "complete"
  • Error = "error"
  • Success = "success"
  • UpgradeNeeded = "upgradeneeded"
  • VersionChange = "versionchange"

DocumentEventType (String)

  • DOMLinkAdded = "DOMLinkAdded"
  • DOMLinkRemoved = "DOMLinkRemoved"
  • DOMMetaAdded = "DOMMetaAdded"
  • DOMMetaRemoved = "DOMMetaRemoved"
  • DOMModalDialogClosed = "DOMModalDialogClosed"
  • DOMWillOpenModalDialog = "DOMWillOpenModalDialog"

DragEventType (String)

  • Drag = "drag"
  • DragEnd = "dragend"
  • DragEnter = "dragenter"
  • DragLeave = "dragleave"
  • DragOver = "dragover"
  • DragStart = "dragstart"
  • Drop = "drop"

FocusEventType (String)

  • Blur = "blur"
  • Focus = "focus"
  • FocusIn = "focusin"
  • FocusOut = "focusout"

FormEventType (String)

  • Reset = "reset"
  • Submit = "submit"

GamePadEventType (String)

  • Connected = "gamepadconnected"
  • Disconnected = "gamepaddisconnected"

InputEventType (String)

  • Change = "change"
  • Input = "input"

KeyboardEventType (String)

  • KeyDown = "keydown"
  • KeyPress = "keypress"
  • KeyUp = "keyup"

MediaEventType (String)

  • AudioProcess = "audioprocess"
  • CanPlay = "canplay"
  • CanPlayThrough = "canplaythrough"
  • Complete = "complete"
  • DurationChange = "durationchange"
  • Emptied = "emptied"
  • Ended = "ended"
  • LoadedData = "loadeddata"
  • LoadedMetadata = "loadedmetadata"
  • Pause = "pause"
  • Play = "play"
  • Playing = "playing"
  • RateChange = "ratechange"
  • Seeked = "seeked"
  • Seeking = "seeking"
  • Stalled = "stalled"
  • Suspend = "suspend"
  • TimeUpdate = "timeupdate"
  • VolumeChange = "volumechange"
  • Waiting = "waiting"

MenuEventType (String)

  • DOMMenuItemActive = "DOMMenuItemActive"
  • DOMMenuItemInactive = "DOMMenuItemInactive"

MouseEventType (String)

  • AuxClick = "auxclick"
  • Click = "click"
  • ContextMenu = "contextmenu"
  • DblClick = "dblclick"
  • MouseDown = "mousedown"
  • MouseEnter = "mouseenter"
  • MouseLeave = "mouseleave"
  • MouseMove = "mousemove"
  • MouseOut = "mouseout"
  • MouseOver = "mouseover"
  • MouseUp = "mouseup"
  • PointerLockChange = "pointerlockchange"
  • PointerLockError = "pointerlockerror"
  • Select = "select"
  • Show = "show"
  • Wheel = "wheel"

NetworkEventType (String)

  • Offline = "offline"
  • Online = "online"

NotificationEventType (String)

  • AlertActive = "AlertActive"
  • AlertClose = "AlertClose"

PointerEventType (String)

  • GotPointerCapture = "gotpointercapture"
  • LostPointerCapture = "lostpointercapture"
  • PointerCancel = "pointercancel"
  • PointerDown = "pointerdown"
  • PointerEnter = "pointerenter"
  • PointerLeave = "pointerleave"
  • PointerMove = "pointermove"
  • PointerOut = "pointerout"
  • PointerOver = "pointerover"
  • PointerUp = "pointerup"

PopupEventType (String)

  • DOMPopupBlocked = "DOMPopupBlocked"
  • PopupHidden = "popuphidden"
  • PopupHiding = "popuphiding"
  • PopupShowing = "popupshowing"
  • PopupShown = "popupshown"

PrintingEventType (String)

  • AfterPrint = "afterprint"
  • BeforePrint = "beforeprint"

ProgressEventType (String)

  • Abort = "abort"
  • Error = "error"
  • Load = "load"
  • LoadEnd = "loadend"
  • LoadStart = "loadstart"
  • Progress = "progress"
  • TimeOut = "timeout"

ResourceEventType (String)

  • Abort = "abort"
  • BeforeUnload = "beforeunload"
  • Cached = "cached"
  • Error = "error"
  • Load = "load"
  • Unload = "unload"

SVGEventType (String)

  • Abort = "SVGAbort"
  • Error = "SVGError"
  • Load = "SVGLoad"
  • Resize = "SVGResize"
  • Scroll = "SVGScroll"
  • Unload = "SVGUnload"
  • Zoom = "SVGZoom"

ScriptEventType (String)

  • AfterScriptExecute = "afterscriptexecute"
  • BeforeScriptExecute = "beforescriptexecute"

SensorEventType (String)

  • CompassNeedsCalibration = "compassneedscalibration"
  • DeviceLight = "devicelight"
  • DeviceMotion = "devicemotion"
  • DeviceOrientation = "deviceorientation"
  • DeviceProximity = "deviceproximity"
  • MozOrientation = "MozOrientation"
  • OrientationChange = "orientationchange"
  • UserProximity = "userproximity"

SessionHistoryEventType (String)

  • PageHide = "pagehide"
  • PageShow = "pageshow"
  • PopState = "popstate"

SmartcardEventType (String)

  • CardStateChange = "cardstatechange"
  • ICCCardLockError = "icccardlockerror"
  • ICCInfoChange = "iccinfochange"
  • SmartcardInsert = "smartcard-insert"
  • SmartcardRemove = "smartcard-remove"
  • StkCommand = "stkcommand"
  • StkSessionEnd = "stksessionend"

StorageEventType (String)

  • Change = "change"
  • Storage = "storage"

TabEventType (String)

  • SSTabClosing = "SSTabClosing"
  • SSTabRestored = "SSTabRestored"
  • SSTabRestoring = "SSTabRestoring"
  • TabClose = "TabClose"
  • TabHide = "TabHide"
  • TabOpen = "TabOpen"
  • TabPinned = "TabPinned"
  • TabSelect = "TabSelect"
  • TabShow = "TabShow"
  • TabUnpinned = "TabUnpinned"
  • VisibilityChange = "visibilitychange"

TextCompositionEventType (String)

  • CompositionEnd = "compositionend"
  • CompositionStart = "compositionstart"
  • CompositionUpdate = "compositionupdate"

TimeEventType (String)

  • Begin = "beginEvent"
  • End = "endEvent"
  • Repeat = "repeatEvent"

TouchEventType (String)

  • TouchCancel = "touchcancel"
  • TouchEnd = "touchend"
  • TouchMove = "touchmove"
  • TouchStart = "touchstart"

TransitionEventType (String)

  • TransitionCancel = "transitioncancel"
  • TransitionEnd = "transitionend"
  • TransitionRun = "transitionrun"
  • TransitionStart = "transitionstart"

UpdateEventType (String)

  • Checking = "checking"
  • Downloading = "downloading"
  • Error = "error"
  • NoUpdate = "noupdate"
  • Obsolete = "obsolete"
  • UpdateReady = "updateready"

ValueChangeEventType (String)

  • Broadcast = "broadcast"
  • CheckboxStateChange = "CheckboxStateChange"
  • HashChange = "hashchange"
  • Input = "input"
  • RadioStateChange = "RadioStateChange"
  • ReadyStateChange = "readystatechange"
  • ValueChange = "ValueChange"

ViewEventType (String)

  • FullScreenChange = "fullscreenchange"
  • FullScreenError = "fullscreenerror"
  • Resize = "resize"
  • Scroll = "scroll"

WebVREventType (String)

  • VRDisplayActivate = "vrdisplayactivate"
  • VRDisplayBlur = "vrdisplayblur"
  • VRDisplayConnect = "vrdisplayconnect"
  • VRDisplayDeactivate = "vrdisplaydeactivate"
  • VRDisplayDisconnect = "vrdisplaydisconnect"
  • VRDisplayFocus = "vrdisplayfocus"
  • VRDisplayPresentChange = "vrdisplaypresentchange"

WebsocketEventType (String)

  • Close = "close"
  • Error = "error"
  • Message = "message"
  • Open = "open"

WindowEventType (String)

  • Close = "close"
  • DOMTitleChanged = "DOMTitleChanged"
  • DOMWindowClose = "DOMWindowClose"
  • DOMWindowCreated = "DOMWindowCreated"
  • SSWindowClosing = "SSWindowClosing"
  • SSWindowStateBusy = "SSWindowStateBusy"
  • SSWindowStateReady = "SSWindowStateReady"

Cordova

CordovaEventType (String)

  • DeviceReady = "deviceready"
  • Pause = "pause"
  • Resume = "resume"

Electron

AppEventType (String)

  • AccessibilitySupportChanged = "accessibility-support-changed"
  • Activate = "activate"
  • ActivityWasContinued = "activity-was-continued"
  • BeforeQuit = "before-quit"
  • BrowserWindowBlur = "browser-window-blur"
  • BrowserWindowCreated = "browser-window-created"
  • BrowserWindowFocus = "browser-window-focus"
  • CertificateError = "certificate-error"
  • ContinueActivity = "continue-activity"
  • ContinueActivityError = "continue-activity-error"
  • GpuProcessCrashed = "gpu-process-crashed"
  • Login = "login"
  • NewWindowForTab = "new-window-for-tab"
  • OpenFile = "open-file"
  • OpenUrl = "open-url"
  • Quit = "quit"
  • Ready = "ready"
  • SelectClientCertificate = "select-client-certificate"
  • UpdateActivityState = "update-activity-state"
  • WebContentsCreated = "web-contents-created"
  • WillContinueActivity = "will-continue-activity"
  • WillFinishLaunching = "will-finish-launching"
  • WillQuit = "will-quit"
  • WindowAllClosed = "window-all-closed"

AutoUpdaterEventType (String)

  • CheckingForUpdate = "checking-for-update"
  • Error = "error"
  • UpdateAvailable = "update-available"
  • UpdateDownloaded = "update-downloaded"
  • UpdateNotAvailable = "update-not-available"

BrowserWindowEventType (String)

  • AppCommand = "app-command"
  • Blur = "blur"
  • Close = "close"
  • Closed = "closed"
  • EnterFullScreen = "enter-full-screen"
  • EnterHtmlFullScreen = "enter-html-full-screen"
  • Focus = "focus"
  • Hide = "hide"
  • LeaveFullScreen = "leave-full-screen"
  • LeaveHtmlFullScreen = "leave-html-full-screen"
  • Maximize = "maximize"
  • Minimize = "minimize"
  • Move = "move"
  • Moved = "moved"
  • NewWindowForTab = "new-window-for-tab"
  • PageTitleUpdated = "page-title-updated"
  • ReadyToShow = "ready-to-show"
  • Resize = "resize"
  • Responsive = "responsive"
  • Restore = "restore"
  • ScrollTouchBegin = "scroll-touch-begin"
  • ScrollTouchEdge = "scroll-touch-edge"
  • ScrollTouchEnd = "scroll-touch-end"
  • SessionEnd = "session-end"
  • SheetBegin = "sheet-begin"
  • SheetEnd = "sheet-end"
  • Show = "show"
  • Swipe = "swipe"
  • Unmaximize = "unmaximize"
  • Unresponsive = "unresponsive"

ClientRequestEventType (String)

  • Abort = "abort"
  • Close = "close"
  • Error = "error"
  • Finish = "finish"
  • Login = "login"
  • Redirect = "redirect"
  • Response = "response"

CookiesEventType (String)

  • Changed = "changed"

DebuggerEventType (String)

  • Detach = "detach"
  • Message = "message"

DownloadItemEventType (String)

  • Done = "done"
  • Updated = "updated"

InAppPurchaseEventType (String)

  • TransactionsUpdated = "transactions-updated"

IncomingMessageEventType (String)

  • Aborted = "aborted"
  • Data = "data"
  • End = "end"
  • Error = "error"

MenuEventType (String)

  • MenuWillClose = "menu-will-close"
  • MenuWillShow = "menu-will-show"

NotificationEventType (String)

  • Action = "action"
  • Click = "click"
  • Close = "close"
  • Reply = "reply"
  • Show = "show"

PowerMonitorEventType (String)

  • OnAc = "on-ac"
  • OnBattery = "on-battery"
  • Resume = "resume"
  • Shutdown = "shutdown"
  • Suspend = "suspend"

ProcessEventType (String)

  • Loaded = "loaded"

ScreenEventType (String)

  • DisplayAdded = "display-added"
  • DisplayMetricsChanged = "display-metrics-changed"
  • DisplayRemoved = "display-removed"

SessionEventType (String)

  • WillDownload = "will-download"

SystemPreferencesEventType (String)

  • AccentColorChanged = "accent-color-changed"
  • ColorChanged = "color-changed"
  • InvertedColorSchemeChanged = "inverted-color-scheme-changed"

TrayEventType (String)

  • BalloonClick = "balloon-click"
  • BalloonClosed = "balloon-closed"
  • BalloonShow = "balloon-show"
  • Click = "click"
  • DoubleClick = "double-click"
  • DragEnd = "drag-end"
  • DragEnter = "drag-enter"
  • DragLeave = "drag-leave"
  • Drop = "drop"
  • DropFiles = "drop-files"
  • DropText = "drop-text"
  • MouseEnter = "mouse-enter"
  • MouseLeave = "mouse-leave"
  • MouseMove = "mouse-move"
  • RightClick = "right-click"

WebContentsEventType (String)

  • BeforeInputEvent = "before-input-event"
  • CertificateError = "certificate-error"
  • ConsoleMessage = "console-message"
  • ContextMenu = "context-menu"
  • Crashed = "crashed"
  • CursorChanged = "cursor-changed"
  • Destroyed = "destroyed"
  • DevtoolsClosed = "devtools-closed"
  • DevtoolsFocused = "devtools-focused"
  • DevtoolsOpened = "devtools-opened"
  • DevtoolsReloadPage = "devtools-reload-page"
  • DidAttachWebview = "did-attach-webview"
  • DidChangeThemeColor = "did-change-theme-color"
  • DidFailLoad = "did-fail-load"
  • DidFinishLoad = "did-finish-load"
  • DidFrameFinishLoad = "did-frame-finish-load"
  • DidGetRedirectRequest = "did-get-redirect-request"
  • DidGetResponseDetails = "did-get-response-details"
  • DidNavigate = "did-navigate"
  • DidNavigateInPage = "did-navigate-in-page"
  • DidStartLoading = "did-start-loading"
  • DidStopLoading = "did-stop-loading"
  • DomReady = "dom-ready"
  • FoundInPage = "found-in-page"
  • Login = "login"
  • MediaPaused = "media-paused"
  • MediaStartedPlaying = "media-started-playing"
  • NewWindow = "new-window"
  • PageFaviconUpdated = "page-favicon-updated"
  • Paint = "paint"
  • PluginCrashed = "plugin-crashed"
  • SelectBluetoothDevice = "select-bluetooth-device"
  • SelectClientCertificate = "select-client-certificate"
  • UpdateTargetUrl = "update-target-url"
  • WillAttachWebview = "will-attach-webview"
  • WillNavigate = "will-navigate"
  • WillPreventUnload = "will-prevent-unload"