Removing row from GridLayout

This should work for clearing plots:

for c in contents(menugrid[end, :])
    # clean up plots and some observables
    empty!(c.blockscene)

    delete!(c)
end
trim!(menugrid)

I’m not sure how complete the observable cleanup is with this. I wouldn’t be surprised if this leaves behind some ghost interactions, like an invisible button you can still press. If that is the case it would be good to open an issue for this.

1 Like