Can a parent remove a child component? #15
Unanswered
PatrickSchutte
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Sam,
May I ask if there is an equivalent remove_component that the parent can call to remove its children components, and possibly a list of them?
Why I ask, is that I create an individual component for each day of the month in my test project( trying to do it in pure Python and Tetra only) that I have included. scrolling forward or back through the months work, but then I assume that it is now trying to re-create an existing day( key is yyy_m_d) but get locked up when you back and forth a month or 2.
It also seems to get mixed up when selecting the 1st, 2nd, 3rd, or 4th of June but selecting another month then works fine for all the days. I shall dig a bit deeper when I get the chance.
learn02.zip
( The entire thing just needs a venv, Django & Tetraframework, no other requirements.)
Edit:
I've tried different approaches, but the children are building up, what do you suggest?
Beta Was this translation helpful? Give feedback.
All reactions