React SPA Framework - Router - Methods
format(obj)
A URI generated from the specified object using the registered routing rules.
Formatting is performed using the rule registered using the register method. If several routing rules are registered, they are evaluated in the order of registration. If the specified object fits a rule, the rule is used to generate a URI. Otherwise, the remaining routing rules are evaluated by one another.
parse(uri)
Decodes the specified URI to an object using the registered routing rules.
Parsing is performed using the rule registered using the register method. If several routing rules are registered, they are evaluated in the order of registration. If the specified URI fits a rule, the rule is used to process the URL. Otherwise, the remaining routing rules are evaluated one by another.
register(pattern, defaults, constraints)
An object whose field names correspond to the pattern parameters. These fields are set to the parameters' default values.
Use this method to register a routing rule in an application. Call this method after instantiating the HtmlApplication object.
For details of possible variants of rule patterns, defaults and constraints, refer to the Declare a Routing topic.
If you have technical questions, please create a support ticket in the DevExpress Support Center.