Object

chandu0101.scalajs.react.components

ReactDraggable

Related Doc: package components

Permalink

object ReactDraggable

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReactDraggable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class Backend extends AnyRef

    Permalink
  2. type CssClassType = Map[String, Boolean]

    Permalink
  3. case class Props(cancel: UndefOr[String], onDrag: UndefOr[(Event, RElementPosition) ⇒ Callback], useCSSTransforms: Boolean, clsNames: CssClassType, ref: UndefOr[String], moveOnStartChange: Boolean, grid: UndefOr[RGrid], key: Any, zIndex: Int, axis: String, onStop: UndefOr[(Event, RElementPosition) ⇒ Callback], start: RPoint, onStart: UndefOr[(Event, RElementPosition) ⇒ Callback], onMouseDown: UndefOr[(Event) ⇒ Callback], handle: UndefOr[String], minConstraints: UndefOr[RGrid], maxConstraints: UndefOr[RGrid]) extends Product with Serializable

    Permalink
  4. case class State(dragging: Boolean, startX: Int, startY: Int, offsetX: Int, offsetY: Int, clientX: Int, clientY: Int, stopListening: UndefOr[Callback]) extends Product with Serializable

    Permalink

    dragging

    whether or not currently dragging

    startX

    Start left of t.getDOmNode()

    startY

    Start top of t.getDOmNode()

    offsetX

    Offset between start left and mouse left

    offsetY

    Offset between start top and mouse top

    clientX

    Current left of this.getDOMNode()

    clientY

    Current top of this.getDOMNode()

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object DomUtil

    Permalink
  5. object Style extends Inline

    Permalink
  6. def apply(cancel: UndefOr[String] = js.undefined, onDrag: UndefOr[(Event, RElementPosition) ⇒ Callback] = js.undefined, useCSSTransforms: Boolean = false, clsNames: CssClassType = Map(), ref: UndefOr[String] = js.undefined, moveOnStartChange: Boolean = false, grid: UndefOr[RGrid] = js.undefined, key: Any = {}, zIndex: Int = 0, axis: String = "both", onStop: UndefOr[(Event, RElementPosition) ⇒ Callback] = js.undefined, start: RPoint = RPoint(0, 0), onStart: UndefOr[(Event, RElementPosition) ⇒ Callback] = js.undefined, onMouseDown: UndefOr[(Event) ⇒ Callback] = js.undefined, handle: UndefOr[String] = js.undefined, minConstraints: UndefOr[RGrid] = js.undefined, maxConstraints: UndefOr[RGrid] = js.undefined)(children: ReactNode): ReactComponentU[Props, State, Backend, TopNode]

    Permalink

    cancel

    specifies a selector to be used to prevent drag initialization.

    onDrag

    Called while dragging

    useCSSTransforms

    if true will place the element using translate(x, y) rather than CSS top/left. This generally gives better performance, and is useful in combination with other layout systems that use translate(), such as react-grid-layout.

    clsNames

    css class names map

    ref

    ref for this component

    moveOnStartChange

    tells the Draggable element to reset its position if the start parameters are changed. By default, if the start parameters change, the Draggable element still remains where it started or was dragged to.

    grid

    specifies the x and y that dragging should snap to.

    key

    key for this react component

    zIndex

    specifies the zIndex to use while dragging.

    axis

    determines which axis the draggable can move.(both,x,y)

    onStop

    Called when dragging stops

    start

    specifies the x and y that the dragged item should start at

    onStart

    Called when dragging starts.

    onMouseDown

    * A workaround option which can be passed if onMouseDown needs to be accessed, since it'll always be blocked (due to that there's internal use of onMouseDown)

    handle

    specifies a selector to be used as the handle that initiates drag.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val component: ReqProps[Props, State, Backend, TopNode]

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def newStateFrom(P: Props): State

    Permalink
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. implicit val r0: Reusability[Props]

    Permalink
  21. implicit val r1: Reusability[State]

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped