@@ -3730,6 +3730,46 @@ 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 operation is
3735+ * used to indicate that the data being dragged will be copied from its present location to
3736+ * the drop location. The move operation is used to indicate that the data being dragged will
3737+ * be moved, and the link operation is used to indicate that some form of relationship or
3738+ * connection will be created between the source and drop locations.
3739+ *
3740+ * You can specify which of the three operations are allowed for a drag source by setting the
3741+ * `effectAllowed` property within a `dragstart` event listener.
3742+ *
3743+ * Note that these values must be used exactly as defined below.
3744+ *
3745+ * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Drag_operations#drageffects
3746+ */
3747+ object DataEffect {
3748+
3749+ /** no operation is permitted */
3750+ val None = " none"
3751+
3752+ /** copy only */
3753+ val Copy = " copy"
3754+
3755+ /** move only */
3756+ val Move = " move"
3757+
3758+ /** link only */
3759+ val Link = " link"
3760+
3761+ /** copy or move only */
3762+ val CopyMove = " copyMove"
3763+
3764+ /** copy or link only */
3765+ val CopyLink = " copyLink"
3766+
3767+ /** link or move only */
3768+ val LinkMove = " linkMove"
3769+
3770+ /** copy, move, or link */
3771+ val All = " all"
3772+ }
37333773
37343774/**
37353775 * The DataTransfer object is used to hold the data that is being dragged during a drag
@@ -3749,6 +3789,8 @@ trait DataTransfer extends js.Object {
37493789 * for other events.
37503790 *
37513791 * MDN
3792+ *
3793+ * See [[DataEffect ]] for possible values.
37523794 */
37533795 var effectAllowed : String = js.native
37543796
@@ -3757,6 +3799,8 @@ trait DataTransfer extends js.Object {
37573799 * of effectAllowed.
37583800 *
37593801 * MDN
3802+ *
3803+ * See [[DataEffect ]] for possible values.
37603804 */
37613805 var dropEffect : String = js.native
37623806
0 commit comments