Search...
restore( )
Restores a deleted element to the DOM.
Description
Syntax
function restore(): Promise<void>
restore Parameters
This function does not take any parameters.
Returns
Fulfilled - When the element's deleted
property has been set to false
.
Return Type:
Promise<void>
Mixed in from:$w.HiddenCollapsedElement
Was this helpful?
Restore a deleted element to the DOM
Copy Code
1$w("#myElement").restore();
Restore an element to the DOM and log a message when done
Copy Code
1$w("#myElement").restore()2 .then( () => {3 console.log("Done with restore");4 } );