Hello,
I am trying to create a UI component dynamically which essentially shows a series of buttons in a LinearPanel (i.e. vertically stacked buttons); with each LinearPanel being adjacent (i.e. columns of stacked buttons).
Although I can create this using the visual editor (Drag LinearPanels into a ColumnPanel so they stack horizontally), every time add_component
is called in code, a component is added vertically to a ColumnPanel. I have tried using GridPanel but it cuts off the buttons if I use 1 column width; and if I use 2, I will run out as I may have more than 6 separate columns of buttons to show (max limit of GridPanel is 12 / 2 = 6.
Before runtime, I will not know how many columns I need.
Does anyone know the best way of aligning as COLUMNS, a set of LinearPanels?
Thanks in advance!