org.scalajs.dom.raw

DataTransfer

Related Doc: package raw

trait DataTransfer extends Object

The DataTransfer object is used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see Drag and Drop.

This object is available from the dataTransfer property of all drag events. It cannot be created separately.

MDN

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DataTransfer
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clearData(format: String = js.native): Boolean

    Remove the data associated with a given type.

    Remove the data associated with a given type. The type argument is optional. If the type is empty or not specified, the data associated with all types is removed. If data for the specified type does not exist, or the data transfer contains no data, this method will have no effect.

    MDN

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. var dropEffect: String

    The actual effect that will be used, and should always be one of the possible values of effectAllowed.

    The actual effect that will be used, and should always be one of the possible values of effectAllowed.

    MDN

  8. var effectAllowed: String

    Specifies the effects that are allowed for this drag.

    Specifies the effects that are allowed for this drag. You may set this in the dragstart event to set the desired effects for the source, and within the dragenter and dragover events to set the desired effects for the target. The value is not used for other events.

    MDN

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def files: FileList

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def getData(format: String): String

    Retrieves the data for a given type, or an empty string if data for that type does not exist or the data transfer contains no data.

    Retrieves the data for a given type, or an empty string if data for that type does not exist or the data transfer contains no data.

    MDN

  15. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  23. def setData(format: String, data: String): Boolean

    Set the data for a given type.

    Set the data for a given type. If data for the type does not exist, it is added at the end, such that the last item in the types list will be the new format. If data for the type already exists, the existing data is replaced in the same position. That is, the order of the types list is not changed when replacing data of the same type.

    MDN

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toLocaleString(): String

    Definition Classes
    Object
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. def types: DOMStringList

    Holds a list of the format types of the data that is stored for the first item, in the same order the data was added.

    Holds a list of the format types of the data that is stored for the first item, in the same order the data was added. An empty list will be returned if no data was added.

    MDN

  28. def valueOf(): Any

    Definition Classes
    Object
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped