Skip to content

Page Layout: how to add additional ui.footer content #187

Closed Answered by falkoschindler
JS-Aibel asked this question in Q&A
Discussion options

You must be logged in to vote

When should ui.label("This is not working") be added? rowData is only defined and initialized when a client accesses the page and page_layout() is evaluated for the first time. Before that rowData is undefined.

Triggering the new label from, e.g., a button on another site is working:

@ui.page('/other_page')
def other_page():
    def add():
        with rowData:
            ui.label('This is not working')
    ui.button('add another label', on_click=add)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JS-Aibel
Comment options

@JS-Aibel
Comment options

@falkoschindler
Comment options

Answer selected by JS-Aibel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #186 on December 02, 2022 07:45.