메소드 | 설명 | |
---|---|---|
GetRoute ( this routable, string templateId, string path = null ) : DotNetify.Routing.Route |
Defines a route from a route template that belongs to the view model.
|
|
InitArgs ( this routable, object viewData ) : string |
Returns HTML data attribute markup that contains routing initialization arguments. This needs to be placed in the same DOM element that has the "data-vm" attribute.
|
|
OnActivated ( this iRoutable, EventHandler |
Handles the activate event, which occurs when a route is being activated.
|
|
OnRouted ( this routable, EventHandler |
Handles the routed event, which occurs when this view model is being routed to.
|
|
Redirect ( this routable, string redirectRoot, string path ) : DotNetify.Routing.Route |
Defines a route that belongs to another view model.
|
|
RegisterRoutes ( this routable, string root, List |
Registers route templates.
|
|
Route ( |
Call this method from the controller to perform routing.
|
|
RouteUrl ( this routable, |
Performs routing. The URL path is given inside the view data, along with the initial route template to start from. This is a recursive method that will be called again by the nested views until the route is resolved.
|
메소드 | 설명 | |
---|---|---|
Match ( string urlPath, string root, string urlPattern, string &oPath ) : bool |
Matches the URL path with the given URL pattern.
|
|
MatchTemplate ( List |
Matches a URL path to any of the route templates.
|
public static GetRoute ( this routable, string templateId, string path = null ) : DotNetify.Routing.Route | ||
routable | this | Routable view model. |
templateId | string | Identifies a template that belongs to this view model. |
path | string | Optional path, to be used to replace parameterized template's URL pattern. |
리턴 | DotNetify.Routing.Route |
public static InitArgs ( this routable, object viewData ) : string | ||
routable | this | Routable view model. |
viewData | object | Routing view data. |
리턴 | string |
public static OnActivated ( this iRoutable, EventHandler |
||
iRoutable | this | Routable view model. |
eventHandler | EventHandler |
Activate event handler. |
리턴 | void |
public static OnRouted ( this routable, EventHandler |
||
routable | this | Routable view model. |
eventHandler | EventHandler |
Routed event handler. |
리턴 | void |
public static Redirect ( this routable, string redirectRoot, string path ) : DotNetify.Routing.Route | ||
routable | this | Routable view model. |
redirectRoot | string | Root path of the route. If the path partially matches the view model's root path, they will be combined. |
path | string | Route path. |
리턴 | DotNetify.Routing.Route |
public static RegisterRoutes ( this routable, string root, List |
||
routable | this | Routable view model. |
root | string | Root path to which all other paths will be evaluated. |
routeTemplates | List |
Route templates that belong to the view model. |
리턴 | void |
public static Route ( |
||
viewData | Routing view data. | |
oModel | IRoutable | Model to be passed to the view. |
리턴 | string |
public static RouteUrl ( this routable, |
||
routable | this | Routable view model. |
viewData | Routing view data. | |
리턴 | void |