Adding components to a Column Panel

I’m trying to add components to a column panel with two columns. My code so far is:

panel = ColumnPanel(col_widths='{"one":10,"two":2}')
item_1 = Link(text='one')
item_2 = Label(text='two)
panel.add_component(item_1)
panel.add_component(item_1)

but, as the documentation says, the final line is adding item_2 on a new row. How do I add it to the second column?

I think you might need to use a grid panel - see this post thread :

1 Like

Aghhhh!! I hunted in here first but did’t spot that one

Thank you

1 Like