mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
[API] Add gesture example
This commit is contained in:
9
API.md
9
API.md
@ -154,6 +154,15 @@ openmct.conductor.on('bounds', function (newBounds) {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Support Common Gestures
|
||||||
|
|
||||||
|
Custom views may also want to support common gestures using the
|
||||||
|
[gesture API]{@link module:openmct.GestureAPI}. For instance, to make
|
||||||
|
a view (or part of a view) selectable:
|
||||||
|
|
||||||
|
```
|
||||||
|
openmct.gestures.selectable(myHtmlElement, myDomainObject);
|
||||||
|
```
|
||||||
|
|
||||||
## Plugins
|
## Plugins
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user