All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalajs.dom.event.DragEvents.scala Maven / Gradle / Ivy

There is a newer version: 0.4.2
Show newest version
package io.scalajs.dom.event

import scala.scalajs.js

/**
  * Drag Events
  * @author [email protected]
  */
@js.native
trait DragEvents extends js.Object {

  /**
    * The event occurs when an element is being dragged
    */
  def ondrag(callback: js.Function): Unit = js.native

  /**
    * The event occurs when the user has finished dragging an element
    */
  def ondragend(callback: js.Function): Unit = js.native

  /**
    * The event occurs when the dragged element enters the drop target
    */
  def ondragenter(callback: js.Function): Unit = js.native

  /**
    * The event occurs when the dragged element leaves the drop target
    */
  def ondragleave(callback: js.Function): Unit = js.native

  /**
    * The event occurs when the dragged element is over the drop target
    */
  def ondragover(callback: js.Function): Unit = js.native

  /**
    * The event occurs when the user starts to drag an element
    */
  def ondragstart(callback: js.Function): Unit = js.native

  /**
    * The event occurs when the dragged element is dropped on the drop target
    */
  def ondrop(callback: js.Function): Unit = js.native

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy