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

Customize NMRium Preferences and mode using URL parameters #22

Closed
hamed-musallam opened this issue May 4, 2022 · 0 comments · Fixed by #177
Closed

Customize NMRium Preferences and mode using URL parameters #22

hamed-musallam opened this issue May 4, 2022 · 0 comments · Fixed by #177
Assignees

Comments

@hamed-musallam
Copy link
Collaborator

hamed-musallam commented May 4, 2022

pass preferences and workspace parameters with the URL to customize the NMRium

we encode preferences JSON data with a URL encode

{"toolBarButtons": {"import": true,"exportAs": true},"panels": {"multipleSpectraAnalysisPanel": { "hidden": true },"spectraPanel": { "hidden": true }}}

output

%7B%22toolBarButtons%22%3A%20%7B%22import%22%3A%20true%2C%22exportAs%22%3A%20true%7D%2C%22panels%22%3A%20%7B%22multipleSpectraAnalysisPanel%22%3A%20%7B%20%22hidden%22%3A%20true%20%7D%2C%22spectraPanel%22%3A%20%7B%20%22hidden%22%3A%20true%20%7D%7D%7D%0A

for example
https://nmriumdev.nmrxiv.org/?workspace=default&preferences=%7B%22toolBarButtons%22%3A%20%7B%22import%22%3A%20true%2C%22exportAs%22%3A%20true%7D%2C%22panels%22%3A%20%7B%22multipleSpectraAnalysisPanel%22%3A%20%7B%20%22hidden%22%3A%20true%20%7D%2C%22spectraPanel%22%3A%20%7B%20%22hidden%22%3A%20true%20%7D%7D%7D%0A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant