Module Goog.​Fx

module Fx : sig..end

class type animation = object..end
val animation : 
  (int Js.js_array Js.t ->
   int Js.js_array Js.t ->
   int -> (float Js.t -> float Js.t) Js.opt -> animation Js.t)
  Js.constr

Constructor for an animation object.

class type dragger = object..end
val dragger : 
  (#Dom_html.element Js.t ->
   #Dom_html.element Js.t Js.opt ->
   Goog.Math.rect Js.t Js.opt -> dragger Js.t)
  Js.constr

A class that allows mouse based dragging (moving) of an element

type dragListDirection =  | DOWN | UP | RIGHT | LEFT
class type dragListGroup = object..end
val dragListGroup : dragListGroup Js.t Js.constr

A class representing a group of one or more "drag lists" with items that can be dragged within them and between them.

Example usage: var dragListGroup = new goog.fx.DragListGroup(); dragListGroup.setDragItemHandleHoverClass(className1); dragListGroup.setDraggerElClass(className2); dragListGroup.addDragList(vertList, goog.fx.DragListDirection.DOWN); dragListGroup.addDragList(horizList, goog.fx.DragListDirection.RIGHT); dragListGroup.init();

class type dragScrollSupport = object..end
val dragScrollSupport : 
  (#Dom_html.element Js.t ->
   int Js.opt -> bool Js.t Js.opt -> dragScrollSupport Js.t)
  Js.constr

A scroll support class. Currently this class will automatically scroll a scrollable container node and scroll it by a fixed amount at a timed interval when the mouse is moved above or below the container or in vertical margin areas. Intended for use in drag and drop. This could potentially be made more general and could support horizontal scrolling.

class type animationEvent = object..end
val animationEvent : 
  (Js.js_string Js.t ->
   animation Js.t -> animationEvent Js.t)
  Js.constr

Class for an animation event object.

class type animationQueue = object..end
val animationQueue : animationQueue Js.t Js.constr

Constructor for AnimationQueue object.

class type dragEvent = object..end
val dragEvent : 
  (Js.js_string Js.t ->
   dragger Js.t ->
   int ->
   int ->
   Goog.Events.browserEvent Js.t ->
   int Js.opt ->
   int Js.opt -> bool Js.t Js.opt -> dragEvent Js.t)
  Js.constr
class type animationParallelQueue = object..end
val animationParallelQueue : animationParallelQueue Js.t Js.constr

Constructor for AnimationParallelQueue object.

class type animationSerialQueue = object..end
val animationSerialQueue : animationSerialQueue Js.t Js.constr
class type abstractDragDrop = object..end
class type dragDropItem = object..end
class type dragDrop = object..end
val dragDropItem : 
  ((#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t ->
   dragDropItem Js.t)
  Js.constr

Class representing a source or target element for drag and drop operations.

val abstractDragDrop : abstractDragDrop Js.t Js.constr

Abstract class that provides reusable functionality for implementing drag and drop functionality. This class also allows clients to define their own subtargeting function so that drop areas can have finer granularity then a singe element. This is accomplished by using a client provided function to map from element and coordinates to a subregion id. This class can also be made aware of scrollable containers that contain drop targets by calling addScrollableContainer. This will cause dnd to take changing scroll positions into account while a drag is occuring.

val dragDrop : 
  ((#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t ->
   dragDrop Js.t)
  Js.constr

Drag/drop implementation for creating drag sources/drop targets consisting of a single HTML Element.

class type dragDropEvent = object..end
val dragDropEvent : 
  (Js.js_string Js.t ->
   #abstractDragDrop Js.t ->
   dragDropItem Js.t ->
   #abstractDragDrop Js.t Js.opt ->
   dragDropItem Js.t Js.opt ->
   #Dom_html.element Js.t Js.opt ->
   int Js.opt ->
   int Js.opt -> int Js.opt -> int Js.opt -> dragDropEvent Js.t)
  Js.constr
class type dragDropGroup = object..end
val dragDropGroup : dragDropGroup Js.t Js.constr

Drag/drop implementation for creating drag sources/drop targets consisting of multiple HTML Elements (items). All items share the same drop target(s) but can be dragged individually.