Newer Version Available
VisualEditor Namespace
The VisualEditor namespace provides classes and
methods for interacting with the Lightning App Builder. The classes and methods in this
namespace operate on Lightning components, which include Lightning web components and Aura
components.
As of Spring ’19 (API version 45.0), you
can build Lightning components using two programming models: the Lightning
Web Components model, and the original Aura Components model. Lightning web
components are custom HTML elements built using HTML and modern JavaScript.
Lightning web components and Aura components can coexist and interoperate on
a page.
Configure Lightning web components and Aura components to work in Lightning App Builder and Community Builder. Admins and end users don’t know which programming model was used to develop the components. To them, they’re simply Lightning components.
The following are the classes in the VisualEditor namespace.