Search...
listRemovedElements( )
Gets a list of all removed widget elements.
Description
The listRemovedElements()
function returns a Promise that resolves to a list of selectors of removed elements that are part of the widget with which the panel is associated, for example: [‘title’, ‘description’]
. To use this function on an inner (nested) widget, use getScopedWixEditor()
.
Syntax
function listRemovedElements(): Promise<Array<string>>
listRemovedElements Parameters
This function does not take any parameters.
Returns
Fulfilled - A list of of selectors of removed elements.
Return Type:
Promise<Array<string>>
Was this helpful?
Get all the removed elements
Copy Code
1import wixEditor from 'wix-editor';23// ...45wixEditor.listRemovedElements()6 .then(allRemovedElements => {7 // Code to execute with the allRemovedElements array8 })910// For example, allRemovedElements can be: ["#title", "#button1"]