Skip to main content

ElementDraggerOptions

Options for an ElementDragger

Properties

constrain?

optional constrain: ConstrainFunction<BrowserElement, MouseEvent>

Function to constrain movement of the elements.


containment?

optional containment: ContainmentType

Shortcut for some basic constrain scenarios - constrain to parent, constrain entirely to parent, dont allow movement into negative axes.


containmentPadding?

optional containmentPadding: number

If containment is set, you can provide a value for padding here. Currently the default is 5 pixels.


filter?

optional filter: string

CSS3 filter identifying parts of the elements that should not allow drag