Conditionally Rendering a View Based on FileS Upload #555
-
I am trying to conditionally render a view based on what the the files selected by the client from the I have verified that on the back end the temp files are, in fact, being created from the files selected from the browser, copied to the temp directory and passed to the appropriate methods. You'll notice in my comment that if one line is commented out while the other is uncommented, the app works just fine. I have printed each variable in my code snippet to the console and verified that their values are essentially the same in both the working an non-working conditions. (By "non-working" I mean the VInputFile icon is still there etc., it's just that the center of the page remains white and nothing is rendered.) I even verified the the
And when I inspect the center element(s) in the Chrome dev tools, I see a Does anyone know why this might not be displaying anything or perhaps a better way to go about what I am trying to do here?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm pretty sure the container has a 0px height just because you've added the fileinput before it. Instead you could put the file loader in a dialog as an overlay. |
Beta Was this translation helpful? Give feedback.
-
Calling |
Beta Was this translation helpful? Give feedback.
Calling
pv_widgets.initialize(self.server)
in constructor was needed since the widget was not used at startup.