Skip to content

Routing examples #458

@amcclain

Description

@amcclain

Would like to have examples of routing baked into Toolbox so we can look to it for a reference implementation.

I would suggest having two new tabs under "Other" -

Routing (simple)

  • Grid with the selected record ID maintained in the route. E.g. URLs like https://toolbox-dev.xh.io/app/other/simpleRouting/123 where 123 is a record ID and that record is (auto) selected in the grid.

Routing (advanced)

  • Grid with query params (e.g. use of groupingChooser and/or filters) where query and selected ID are encoded into the route. In this case we could demo the pattern of writing route state into a JSON object then Base64 encoding to make the route param itself an opaque blob. E.g. URLs like https://toolbox-dev.xh.io/app/other/advancedRouting/eyJncm91cEJ5IjoidHJhZGVyIiwic2VsZWN0ZWRJZCI6MTIzfQ==, where the routing param decodes to {"groupBy":"trader","selectedId":123}.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions