Search.../

restore( )

Restores a deleted element to the DOM.

Description

The restore() function returns a Promise that is resolved when the element's deleted property has been set to false. See the delete function.

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.Element

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 } );