trait ResizableOptions extends Object with ActionOptions with RestrictAble with InertiaAble with AutoScrollAble
- Annotations
- @JSType()
- Alphabetic
- By Inheritance
- ResizableOptions
- AutoScrollAble
- ActionOptions
- InertiaAble
- RestrictAble
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allowFrom: UndefOr[String]
The allowFrom option lets you specify a target CSS selector or Element which must be the target of the pointer down event in order for the action to start.
The allowFrom option lets you specify a target CSS selector or Element which must be the target of the pointer down event in order for the action to start. This option available for drag, resize and gesture, as well as pointerEvents (down, move, hold, etc.). Using the allowFrom option, you may specify handles for each action separately and for all your pointerEvents listeners.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val autoScroll: UndefOr[|[Boolean, AutoScrollOptions]]
- Definition Classes
- AutoScrollAble
- Annotations
- @JSOptional()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val edges: UndefOr[ResizableEdgesOptions]
If resize edges are used, resize events will have rect and deltaRect properties.
If resize edges are used, resize events will have rect and deltaRect properties. In resizestart, rect will be identical to the rect returned by interactable.getRect(element) and deltaRect will have all-zero properties. rect is updated on each resizemove and the values in deltaRect reflect the changes.
If you’d like an element to behave as a resize corner, let it match the selectors of two adjacent edges.
Resize handle elements must be children of the resizable element. If you need the handles to be outside the target element, then you will need to use Interaction#start.
- Annotations
- @JSOptional()
- val enabled: UndefOr[Boolean]
Enable the action for the Interactable.
Enable the action for the Interactable. If the options object has no enabled property or the property value is true then the action is enabled. If enabled is false, the action is disabled.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val hold: UndefOr[Double]
The action will start after the pointer is held down for the given number of milliseconds.
The action will start after the pointer is held down for the given number of milliseconds.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- val ignoreFrom: UndefOr[String]
The compliment to allowFrom, ignoreFrom lets you specify elements within your target with which to avoid starting actions.
The compliment to allowFrom, ignoreFrom lets you specify elements within your target with which to avoid starting actions. This is useful when certain elements need to maintain default behavior when interacted with. For example, dragging around a text/contentEditable, by wrapping this object with a draggable element and ignoring the editable content you maintain the ability to highlight text without moving the element.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- val inertia: UndefOr[|[Boolean, InertiaOptions]]
- Definition Classes
- InertiaAble
- Annotations
- @JSOptional()
- val invert: UndefOr[String]
Choose what should happen if the target would be resized to dimensions less than 0x0.
Choose what should happen if the target would be resized to dimensions less than 0x0. The possible values are: 'none' will limit the resize rect to a minimum of 0x0 'negate' will allow the rect to have negative width/height 'reposition' will keep the width/height positive by swapping the top and bottom edges and/or swapping the left and right edges
- Annotations
- @JSOptional()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val manualStart: UndefOr[Boolean]
If this is changed to true then drag, resize and gesture actions will have to be started with a call to Interaction#start as the usual down,move, <action>start… sequence will not start an action.
If this is changed to true then drag, resize and gesture actions will have to be started with a call to Interaction#start as the usual down,move, <action>start… sequence will not start an action.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- val max: UndefOr[Double]
max is used to limit the number of concurrent interactions that can target an interactable.
max is used to limit the number of concurrent interactions that can target an interactable. By default, any number of interactions can target an interactable.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- val maxPerElement: UndefOr[Double]
By default only 1 interaction can target the same interactable+element combination.
By default only 1 interaction can target the same interactable+element combination. If you want to allow multiple interactions on the same target element, set the maxPerElement property of your object to a value >= 2.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val onend: UndefOr[Function1[InteractEvent, Unit]]
Called when an interaction is finished.
Called when an interaction is finished.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- val onmove: UndefOr[Function1[InteractEvent, Unit]]
Called when the object is being interacted with.
Called when the object is being interacted with.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- val onstart: UndefOr[Function1[InteractEvent, Unit]]
Called when an interaction is started.
Called when an interaction is started.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val ratio: UndefOr[Double]
interact.js comes with an aspectRatio modifier which can be used to force the resized rect to maintain a certain aspect ratio.
interact.js comes with an aspectRatio modifier which can be used to force the resized rect to maintain a certain aspect ratio. The modifier has 3 options: - ratio - number or ‘preserve’ - The aspect ratio to maintain or the value ‘preserve’ to maintain the starting ratio - equalDelta - boolean - Increase edges by the same amount instead of maintaining the same ratio - modifiers - array of modifiers - Modifiers to apply to the resize which will be made to respect the aspect ratio options To guarantee that the aspect ratio options are respected by other modifiers, those modifiers must be in the aspectRatio.modifiers array option, not in the same resize.modifiers array as the aspectRatio one.
- Annotations
- @JSOptional()
- val restrict: UndefOr[RestrictOptions]
- Definition Classes
- RestrictAble
- Annotations
- @JSOptional()
- val restrictEdges: UndefOr[RestrictOptions]
- Definition Classes
- RestrictAble
- Annotations
- @JSOptional()
- val restrictSize: UndefOr[RestrictOptions]
- Definition Classes
- RestrictAble
- Annotations
- @JSOptional()
- val snap: UndefOr[|[Boolean, SnapOptions]]
Change snapping settings for drag and resize.
Change snapping settings for drag and resize. See docs/snapping.
- Definition Classes
- ActionOptions
- Annotations
- @JSOptional()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated