viewMode


viewModestringRead-only

Gets which mode a site is currently being viewed in.

The viewMode property gets either:

  • "Preview": When previewing a site using the Preview button in the editor.
  • "Site": When viewing a published site.
  • "Editor": When viewing a Wix Blocks built widget in the editor.
Did this help?