Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WindowSurvey

Class for opening survey in a new tab/window

In the openNewWindow You can specify if the survey should be opened in a new window, otherwise only a new tab will be created

Example (es module)

import { UrlBuilder, WindowSurvey } from '@hello-customer/website-touchpoint'
const urlBuilder = new UrlBuilder({
  baseUrl: 'https://base.com',
  language: 'EN',
  tenantId: 'xxxx',
  touchPointId: 'zzz',
  extra: {
    isPreview: true
  }
});
const inlineSurvey = new WindowSurvey(urlBuilder, {
  openNewWindow: true
});

Example (script tag)

<script src="https://unpkg.com/@hello-customer/website-touchpoint"></script>
<script>
const urlBuilder = new hcWebsiteTouchpoint.UrlBuilder({
    baseUrl: 'https://base.com',
    tenantId: 'xxxx',
    touchPointId: 'zzz',
    language: 'EN',
    extra: {
      isPreview: true
    }
   });
const inlineSurvey = new hcWebsiteTouchpoint.WindowSurvey(urlBuilder, {
      openNewWindow: true
    });
</script>

Hierarchy

  • WindowSurvey

Index

Constructors

constructor

Properties

Private Readonly quarantineService

quarantineService: QuarantineService

Private Readonly urlFactory

urlFactory: UrlFactory

Private Readonly validator

Private windowConfig

windowConfig: WindowSurveyConfig

Private windowHandle

windowHandle: Window | undefined | null

Accessors

window

  • get window(): Window | null | undefined

Methods

close

  • close(): void

open

  • open(): void

Generated using TypeDoc