The $w
namespace contains all of the UI elements, nodes, and
events that make up your site. It also includes the $w()
,
onReady()
, and at()
functions.
The APIs in $w
can only be used in front-end code.
You do not need to import $w
.
Notes:
$w
elements, nodes, and events are described here under Wix Editor Elements. Some $w
elements are described in context of their functionality. For example, the WixForms
element is described under the wix-crm-frontend
namespace because using the API for the Wix Forms app is most relevant in the
context of site contacts and visitors.$w
elements change their size dynamically, which can affect the page layout.Get hands-on experience with the $w
API on our Hello World example page.