Methods
interact(element) → {Interactable}
interact('#draggable').draggable(true);
var rectables = interact('rect');
rectables
.gesturable(true)
.on('gesturemove', function (event) {
// ...
});
The methods of this variable can be used to set elements as interactables and also to change various default settings.
Calling it as a function and passing an element or a valid CSS selector string returns an Interactable object which has various methods to configure it.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
element |
Element
|
string
|
The HTML or SVG Element to interact with or CSS selector |
Returns:
- Type:
-
Interactable