This functions would be very usefull because there's no way to access the elements directly (like manipulating a struct).

Yet I solved this by storing the string the panel was created with and, if the use wants to add or remove an element, I kill and recreate the panel with the same string +/- the new element/an old element.