@@ -3730,6 +3730,47 @@ trait NavigatorGeolocation extends js.Object {
37303730trait NavigatorContentUtils extends js.Object {
37313731}
37323732
3733+ /**
3734+ * When dragging, there are several operations that may be performed. The copy
3735+ * operation is used to indicate that the data being dragged will be copied from
3736+ * its present location to the drop location. The move operation is used to
3737+ * indicate that the data being dragged will be moved, and the link operation is
3738+ * used to indicate that some form of relationship or connection will be created
3739+ * between the source and drop locations.
3740+ *
3741+ * You can specify which of the three operations are allowed for a drag source
3742+ * by setting the `effectAllowed` property within a `dragstart` event listener.
3743+ *
3744+ * Note that these values must be used exactly as defined below.
3745+ *
3746+ * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Drag_operations#drageffects
3747+ */
3748+ object DragEffect {
3749+
3750+ /** no operation is permitted */
3751+ final val None = " none"
3752+
3753+ /** copy only */
3754+ final val Copy = " copy"
3755+
3756+ /** move only */
3757+ final val Move = " move"
3758+
3759+ /** link only */
3760+ final val Link = " link"
3761+
3762+ /** copy or move only */
3763+ final val CopyMove = " copyMove"
3764+
3765+ /** copy or link only */
3766+ final val CopyLink = " copyLink"
3767+
3768+ /** link or move only */
3769+ final val LinkMove = " linkMove"
3770+
3771+ /** copy, move, or link */
3772+ final val All = " all"
3773+ }
37333774
37343775/**
37353776 * The DataTransfer object is used to hold the data that is being dragged during a drag
@@ -3749,6 +3790,8 @@ trait DataTransfer extends js.Object {
37493790 * for other events.
37503791 *
37513792 * MDN
3793+ *
3794+ * See [[DragEffect ]] for possible values.
37523795 */
37533796 var effectAllowed : String = js.native
37543797
@@ -3757,6 +3800,8 @@ trait DataTransfer extends js.Object {
37573800 * of effectAllowed.
37583801 *
37593802 * MDN
3803+ *
3804+ * See [[DragEffect ]] for possible values.
37603805 */
37613806 var dropEffect : String = js.native
37623807
0 commit comments