IDBVersionChangeEvent

open class IDBVersionChangeEvent(val type: EventType<IDBVersionChangeEvent>, init: IDBVersionChangeEventInit = definedExternally) : Event(source)

The IDBVersionChangeEvent interface of the IndexedDB API indicates that the version of the database has changed, as the result of an onupgradeneeded event handler function.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<IDBVersionChangeEvent>, init: IDBVersionChangeEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val bubbles: Boolean
Link copied to clipboard
external val cancelable: Boolean
Link copied to clipboard
external val composed: Boolean
Link copied to clipboard
external val currentTarget: EventTarget?
Link copied to clipboard
Link copied to clipboard
external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
external val newVersion: UInt53?

The newVersion read-only property of the IDBVersionChangeEvent interface returns the new version number of the database.

Link copied to clipboard
external val oldVersion: UInt53

The oldVersion read-only property of the IDBVersionChangeEvent interface returns the old version number of the database.

Link copied to clipboard
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<IDBVersionChangeEvent>

Functions

Link copied to clipboard
Link copied to clipboard
external fun preventDefault()
Link copied to clipboard
Link copied to clipboard
external fun stopPropagation()