A detailed description of working with JET elements and classes in your typescript project can be found at:
JET Typescript Usage.
This class provides functions for setting up and handling swipe to reveal on an offcanvas element. The offcanvas
element contains contextual actions that users can perform on the element that user perform the swipe gesture on.
This is most commonly found in ListView where user swipes on an item to reveal contextual actions that can be done on the item.
Touch End User Information
| Target |
Gesture |
Action |
| Offcanvas wrapper element |
Swipe |
Reveals the offcanvas element. Depending on the distance relative to the target is swiped, the offcanvas will either be closed (swipe distance too short), opened, or the default action is performed (swipe distance passed the specified threshold). |
| Offcanvas wrapper element |
Pan |
Reveals the offcanvas element. If a default action is specified, the default action will get the entire space of the offcanvas after the user panned past a specified distance threshold. |
Accessibility
Application must ensure that the context menu is available and setup with the
equivalent menu items so that keyboard-only users can perform all the swipe actions
just by using the keyboard.