-
Notifications
You must be signed in to change notification settings - Fork 3
Page States
Henrik Vendelbo edited this page Apr 30, 2014
·
7 revisions
The page body will have a stateful resolver tracking the state. You can define how the class should reflect the state. Have a look at Resolver("page::state::") to see the current values.
| livepage| | | | | | loading | | | | | | launching | | | | | | launched | |
You can listen to page state changes in general by,
Resolver("page::state").on("change",function(ev) {
switch(ev.symbol) {
case "loading": if (ev.value) ...
}
});
Or you can listen very specifically,
Resolver("page::state.loading").on("false",startMyApp);
Resolver("page::state.livepage").on("false",stopMyApp);