Hides the element and sets its hidden
property
to true
.
The hide()
function hides the element and returns a Promise that is
resolved when the effect is complete and the element's hidden
property has been set to true
.
To learn about the behavior of a hidden element,
see the hidden
property.
You can also hide an element when the app loads by using the Properties panel in the Editor.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.