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.

Authorization

Request

This endpoint does not take any parameters

Response Object

Fulfilled - When the element's deleted property has been set to false.

Returns an empty object.

Status/Error Codes

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