Reset All Props (Beta)
Reset All Props (Beta)
element.resetAllProps()
Reset all prop values on a component instance to their component defaults.
This method removes all static value overrides and bindings so that every prop returns the value that is defined in the component definition. This method is a no-op if the instance has no overrides, and resolves without error in that case. The reset is undoable via the Designer’s undo stack.
Beta
These methods are in public beta and may change with future releases.
Syntax
Returns
Promise<null>
A Promise that resolves to null