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

Passing the url parameters from layout to the components #57

Open
hlostam opened this issue May 12, 2017 · 2 comments
Open

Passing the url parameters from layout to the components #57

hlostam opened this issue May 12, 2017 · 2 comments

Comments

@hlostam
Copy link

hlostam commented May 12, 2017

I was wondering, if there is any way how to pass the parameters from the layout to the components. Let’s say I have a layout with table and some charts and I would like to directly include the filtering in the parameters of this layout. For example http://localhost/my_layout?data=something resulting in passing these to all the components, serving like a filter.

Many thanks,
Martin

@nmkridler
Copy link
Contributor

It's possible, it's actually something I've been trying to solve in a more elegant way. Right now I'm doing a stupid hack where I put the parameters in the hash field of the window.location. In the next month or so I'm going to try to release a bunch of things I've been working on for a different project, I'll try to include it.

@hlostam
Copy link
Author

hlostam commented May 16, 2017

Thanks for the answer, looking forward to look at it later!
( I'm not familiar much with React, so in the meantime I gave up and created the dashboard only using Flask. )

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