Difference between revisions of "Gestures"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | Each page of type | + | Each page of type '''[[Page#Menu|menu]]''' and '''[[Page#Page|page]]''', can have multiple gestures assigned. |
− | + | ||
− | This is done through the '''gestures''' attribute on the Project Editor, which | + | This is done through the '''gestures''' attribute on the [[Project Editor]], which is specified through a ''meta tag'' in the source code. |
There are six different types of gestures available: | There are six different types of gestures available: | ||
Line 53: | Line 53: | ||
|- | |- | ||
|user | |user | ||
− | |completing the gesture will produce a user call with name "gesture" and param "<type of gesture>/<page id (without page:)". E.g. param:"swipeleft/menu" | + | |completing the gesture will produce a user call with name "gesture" and param "<type of gesture>/<page id (without page:)". |
+ | E.g. param:"swipeleft/menu" | ||
|- | |- | ||
|page:<page id> | |page:<page id> |
Revision as of 16:48, 16 November 2018
Each page of type menu and page, can have multiple gestures assigned.
This is done through the gestures attribute on the Project Editor, which is specified through a meta tag in the source code.
There are six different types of gestures available:
Each gesture can have one of the following values:
Name | Description |
---|---|
off | no gesture assigned |
user | completing the gesture will produce a user call with name "gesture" and param "<type of gesture>/<page id (without page:)".
E.g. param:"swipeleft/menu" |
page:<page id> | navigate to the specified page id |
page:back | navigate to previous page in history |
page:forward | navigate to next page in history |
Syntax
Gesture meta tags follow a page declaration (menu) or (page). Gestures are specified with semicolon-separated list of <gesture type>=<value>.
(#gestures <gesture type>=<value>; <gesture type>=<value> ... )
E.g.
(menu#portrait) (#gestures swipedown=off; swipeup=page:cameras; pinchin=user) ...