Skip to content

Dynamic table creation - how to place button at end? #4055

Closed Answered by falkoschindler
BlankAdventure asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BlankAdventure,

By placing the target container above the Add button the new rows will appear there too:

with ui.row():  # column headers
    ui.label('Col-1')
    ui.label('Col-2')
    ui.label('Col-3')
c = ui.column()
ui.button('Add', on_click=lambda: add_row(c))

Replies: 1 comment 1 reply

Comment options

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

Answer selected by BlankAdventure
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