Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing examples #458

Open
amcclain opened this issue Dec 21, 2020 · 0 comments
Open

Routing examples #458

amcclain opened this issue Dec 21, 2020 · 0 comments
Assignees

Comments

@amcclain
Copy link
Member

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}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants