MNavigation
MNavigation ⇐ Trait
Kind: global class
Extends: Trait
Properties
Name | Type | Description |
---|---|---|
hasNavigation | Boolean | feature flag |
- MNavigation ⇐
Trait
- new MNavigation()
- .left(key, options) ⇒
Boolean
- .right(key, options) ⇒
Boolean
- .up(key, options) ⇒
Boolean
- .down(key, options) ⇒
Boolean
MNavigation()
Add navigation to a view, which is ’left’, ‘right’, ‘up’, ‘down’ and ‘ok’ methods. It is up to the parent to call the navigation methods.
Important the navigation methods are not callbacks of key events ; a view is never connected directly to the input event bus
left(key, options) ⇒ Boolean
Left-press the view
Kind: instance method of MNavigation
Returns: Boolean
- true if the view has something to do (internal navigation), false if the view has nothing to do (out of bound, …)
Param | Type | Description |
---|---|---|
key | Key | the key model |
options | object | the additional options |
right(key, options) ⇒ Boolean
Right-press the view
Kind: instance method of MNavigation
Returns: Boolean
- true if the view has something to do (internal navigation), false if the view has nothing to do (out of bound, …)
Param | Type | Description |
---|---|---|
key | Key | the key model |
options | object | the additional options |
up(key, options) ⇒ Boolean
Up-press the view
Kind: instance method of MNavigation
Returns: Boolean
- true if the view has something to do (internal navigation), false if the view has nothing to do (out of bound, …)
Param | Type | Description |
---|---|---|
key | Key | the key model |
options | object | the additional options |
down(key, options) ⇒ Boolean
Down-press the view
Kind: instance method of MNavigation
Returns: Boolean
- true if the view has something to do (internal navigation), false if the view has nothing to do (out of bound, …)
Param | Type | Description |
---|---|---|
key | Key | the key model |
options | object | the additional options |