Skip to content

[Question] Page.overlay in UserControl #1984

Answered by ndonkoHenri
ingdesarr1 asked this question in Q&A
Discussion options

You must be logged in to vote

Add the below method to your UserControl and it will work:

    def did_mount(self):
        self.page.overlay.append(self.files)
        self.page.update()

The did_mount is explained here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ingdesarr1
Comment options

Answer selected by ingdesarr1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants