mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[API] Add gesture example
This commit is contained in:
parent
92118d353e
commit
c074f29a07
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user