new RouterBuilder(routesTranslations, allLangs)
RouterBuilder/RouterBuilder.js, line 66
Name | Type | Description |
---|---|---|
routesTranslations |
RoutesTranslations | |
allLangs |
Array | Array of all langs |
Methods
-
_createRoute(segment, parent, routeUrl, controllerAndActionSeparatedByDot, namedParamsDefinition, routeLangs, extension){RouterRouteCommon}
RouterBuilder/RouterBuilder.js, line 157 -
Name Type Description segment
boolean parent
RouterRouteSegment routeUrl
string controllerAndActionSeparatedByDot
string namedParamsDefinition
Map routeLangs
Map extension
string Returns:
Type Description RouterRouteCommon -
_createRouteSegment(parent, routeUrl, namedParamsDefinition, routeLangs){RouterRouteCommon}
RouterBuilder/RouterBuilder.js, line 143 -
Name Type Description parent
RouterRouteSegment routeUrl
string namedParamsDefinition
Map routeLangs
Map Returns:
Type Description RouterRouteCommon -
add(routeKey, routeUrl, controllerAndActionSeparatedByDot, options)
RouterBuilder/RouterBuilder.js, line 110 -
Name Type Description routeKey
string routeUrl
string controllerAndActionSeparatedByDot
string options.namedParamsDefinition
Map options.routeLangs
Map options.extension
string options
-
addDefaultRoutes()
RouterBuilder/RouterBuilder.js, line 320 -
Add default routes
-
addSegment(routeUrl, buildSegment, options)
RouterBuilder/RouterBuilder.js, line 123 -
Name Type Description routeUrl
string options.namedParamsDefinition
Map optional options.routeLangs
Map optional buildSegment
function options
-
fromMap(routes)
RouterBuilder/RouterBuilder.js, line 91 -
Name Type Description routes
Map -
translate(lang, string){string}
RouterBuilder/RouterBuilder.js, line 82 -
Name Type Description lang
string string
string Returns:
Type Description string