Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
admin:online-platform-cms:using-web-ui-custom-events [2021/09/27 09:13] – evaldas-luksys | admin:online-platform-cms:using-web-ui-custom-events [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 129: | Line 129: | ||
| | ||
from: { | from: { | ||
- | fullPath: | + | fullPath: |
- | name: ' | + | name: string, |
}, | }, | ||
to: { | to: { | ||
- | fullPath: | + | fullPath: |
- | name: ' | + | name: string, |
} | } | ||
} | } | ||
Line 146: | Line 146: | ||
* This event allows custom script to stop the route change in the app by adding ' | * This event allows custom script to stop the route change in the app by adding ' | ||
* Each game has it's own module names, so Roulette page will fire ' | * Each game has it's own module names, so Roulette page will fire ' | ||
+ | * Games with nested URLs will have the same moduleName, but different names under the ' | ||
Script example and what it does: | Script example and what it does: | ||
Line 163: | Line 164: | ||
if (routeChangeEvent.detail.moduleName === ' | if (routeChangeEvent.detail.moduleName === ' | ||
+ | // preventDefault prevents the route from updating, so the user cannot access this page normally as he would. In this case | ||
+ | // we provide our custom solution to guide user when he tries to visit this module (page) | ||
| | ||
| |