mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-21 17:54:29 -08:00
parent
22a1e543b6
commit
c017c9f4ab
2 changed files with 15 additions and 10 deletions
|
@ -135,6 +135,7 @@ Module.register('MMM-pages', {
|
|||
if (this.config.modules.length !== 0) {
|
||||
this.animatePageChange();
|
||||
this.resetTimerWithDelay(this.config.rotationDelay);
|
||||
this.sendNotification('NEW_PAGE', this.curPage);
|
||||
} else { Log.error("[Pages]: Pages aren't properly defined!"); }
|
||||
},
|
||||
|
||||
|
|
|
@ -91,10 +91,14 @@ enforce what page other modules should indicate. This is intentional, because
|
|||
any other module that needs a page change notification should be receiving from
|
||||
the notification system.
|
||||
|
||||
Finally, if you want to know what page you're currently on, send a `QUERY_PAGE_NUMBER`
|
||||
If you want to know what page you're currently on, send a `QUERY_PAGE_NUMBER`
|
||||
notification. The module will respond with a `PAGE_NUMBER_IS` notification,
|
||||
with the payload of the current page number.
|
||||
|
||||
This module also sends a `NEW_PAGE` notification on every page update. The
|
||||
payload is identical to as if one sent a `QUERY_PAGE_NUMBER` notification. A
|
||||
separate notification tag is used for compatibility reasons.
|
||||
|
||||
## FAQ
|
||||
|
||||
- Help! My module is (above/below) another module in the same region but I want
|
||||
|
|
Loading…
Reference in a new issue