When using the Create Widget endpoint, all widgets become stacked on top of each other toward the middle of the board. Without calling all widgets prior and determining the free space and setting the x and y coordinate, how are you to create widgets NOT right on top of eachother?
Best answer by Max Harper
I know you say “without setting x and y” ...
What I do sometimes is build widget objects in a loop and use an iterator (‘for loop’ i, i++) to add a little x and a little y (<100%of width or height X i ) to each position. As you create them push each onto an array and send that array to the create endpoint. That’ll make a cascading stack.
Add (>100% of width or height X iterator) to each and you’ll get them laying out in an array.
Get fancy, modulo divide them, i rows of j elements, and place them in a matrix….
That kind of thing...