-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support for passing functions as layout (dynamic layouts) #15
Comments
This was resolved by #18, closing. |
Does this actually work the same way as in Python? What I mean is, when layout is a function in Python, every time a user requests the app index page, the layout function executes again - so in principle you can use that to refresh a database query or something. It looks to me as though in the current Julia implementation this function is only evaluated when you start the server. Am I interpreting this correctly? |
function This is about precessing the layout. To be honest, I didn't really understand how layout is related to the index_page query, which generates only the basic html of the page. |
OK great - just wanted to check. Looks like we are indeed all set 🎉
Yes, that's right, the layout isn't in the index page, but it only gets refreshed during the initial load sequence, via the |
As with the other implementations of Dash, Dash.jl should support passing functions (not just components) to
layout
. This is described in more detail (Dash for Python) in https://github.com/plotly/dash-docs/issues/172 and https://github.com/plotly/dash-docs/pull/201.The text was updated successfully, but these errors were encountered: