Panel Loading #5869
Unanswered
CodingPupper3033
asked this question in
Q&A
Panel Loading
#5869
Replies: 2 comments
-
Panel loading is explained in pull request #5896 and can be accessed here I'm still trying to figure out how to make a table, I'll hopefully answer that soon! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I created a table here: There must be better solutions but it is OK for me so far. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
If you're not sick of me yet, I have another question to ask! (Thanks for your help guys, I am very grateful)
I am trying to recreate a screen similar to how the base Inventree does it. It appears you guys make bootstrap panels inside {% page_content %}. That makes sense to me. However, it also seems that you initially hide the panels; I'd assume you're waiting for the data to load. However, I need help figuring out how to unhide the panels. How do you "load the panels"? I found the
onPanelLoad
function but not how to call it.I don't see any special functions that call the panel load in the templates; the only thing I can see is the
{{ block.super }}
which I have tried calling inside the{% block js_ready %}
.I can't find the file anymore, but from what I remember, I thought I saw a function that searches for the class "panel-hidden" and loads it, but it doesn't seem to be calling on my panels.
Additionally, here's something I have been struggling with but need to look into more: How do you generate a table? It appears in the javascript you call a function that ultimately calls table.generateBootstrapTable. Is that the recommended way to create tables similar to those in inventree?
Beta Was this translation helpful? Give feedback.
All reactions