Skip to content

use insert_ui() with more complex ui elements #1695

@Bnjmn83

Description

@Bnjmn83

I'd like to create new UI elements on the fly via a button. It seems if it is more than just a single UI object is not possible. This is the code I would like to get rendered. If I push the button 3 times I want this code to be added 3 times. How can I achieve this?

                with ui.layout_columns(col_widths=(3, 9)):
                    @render.data_frame
                    def render_frame():
                        ...
                        return render.DataGrid(df)
                    
                    @render_plotly
                    def render_plot():
                      ...
                      return fig

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions