Renovation
Search…
Routing
Renovation CMS supports receiving custom routing commands from the scripts

Basic Usage

The data is forwarded as it is to the @angular/router
1
core.bus.post({
2
// the subject id
3
id: "navigate_router",
4
5
// routing data
6
data: ["/form", "Item", "ITEM-00001"]
7
});
Copied!
To get more finer controls over the routing, you can specify Angular's NavigationExtras along with the path array.
1
core.bus.post({
2
id: "navigate_router",
3
data: {
4
router: ["/form", "Item", "ITEM-00001"],
5
extras: {
6
// NavigationExtras
7
}
8
}
9
});
Copied!

Standard Routes in the Application

Forms

The parameters required to route to a Form is the doctype and the name of the document ["/form", "Item", "ITEM-0001"]

Lists

The list view requires just the doctype ["/list", "Item"]