Control must be added to the page first error..All i want is my navigation drawer to show #2288
Replies: 2 comments 4 replies
-
I have the same problem. No way the show Drawer when I use Route View. |
Beta Was this translation helpful? Give feedback.
-
In the route_change function you're clearing the views list of the page (page.views.clear()), this causes the drawer to be removed or cleared along, when the self.drawer.update() is called the drawer isn't found and returns AssertionError: Control must be added to the page first., you can try adding the drawer to the new View control being appended to the page.views list, the View control has its own drawer property, you can read the View control docs for more information on the drawer property. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
How can i show my navigation drawer?
Code sample
Error message
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions