Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DragOptions

property

continuous if true - drag will be executed pixel by pixel dragPixelsAmount times if steps are not defined. If steps is defined, it would be dragged to location by number of iterations that equal dragPixelsAmount / steps.

property

tempSteps Array of Points with actions. Allows to drag to alternative location before end location and do action there before mouse.up(). Example of usage: You get element from panel, drag it to another location. Moving element outside panel triggers panel to be closed. But you need element's location under panel, so you need it to be closed first.

property

beforeMouseUpAction Async function that is executed before mouse.up()

property

afterMouseUpAction Async function that is executed after mouse.up();

property

steps number of steps, in which complete drag would be executed. Default - 1, if continuous is not enabled.

Hierarchy

  • DragOptions

Index

Properties

Optional afterMouseUpAction

afterMouseUpAction: () => Promise<any>

Type declaration

    • (): Promise<any>
    • Returns Promise<any>

Optional beforeMouseUpAction

beforeMouseUpAction: () => Promise<any>

Type declaration

    • (): Promise<any>
    • Returns Promise<any>

Optional continuous

continuous: boolean

Optional steps

steps: number

Optional tempSteps

tempSteps: DragStep[]

Generated using TypeDoc