If I use the delete function on some Elements, how can I then recreate them (as in make them appear again)?
I have looked around the examples and documentation, but I couldn't find any function that would allow me to do this except maybe mkElement which requires me to pass it a String. However since I'm working with Elements getting the String that would create it would be a bit difficult.
So is there any way to do that?
(Library author here)
Actually the, delete function does more than just remove the element from the DOM tree — it tries to delete any references to it in the JS and Haskell side. Essentially the element is (should be) unuseable after a delete.
If you want to temporarily hide an element, you can
display property.element parent # set children [].