Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LitElement
    • Widget

Index

Constructors

  • Returns Widget

Properties

authors: boolean
changed: boolean = false
channel: string
choices: IChoiceItem[]
dataId: string
dateTimeFormatter: ((__namedParameters: Object) => string) = formatDateTime

Type declaration

    • (__namedParameters: Object): string
    • Formats timestamp

      since

      2.43.1

      argument

      object of type {time, format, lang}

      Parameters

      • __namedParameters: Object

      Returns string

firstInteractionTime: Date = null
hide_dismiss_button: boolean = false
initialLoad: boolean = false
interacted: boolean = false
interaction: IWidgetInteraction = null
interactions: IWidgetInteraction[] = null
interactiveUntilTimerTimeout: any
isInteractable: boolean = true
isStockWidget: boolean
kind: any
lang: any
mode: any
options: IOptionItem[]
phase: Phase = Phase.READY
programid: string
question: string
reactions: any
reply: string
selectedOption: any = {}
syntheticIncrement: boolean = false
timeformat: any
timeout: any
timestamps: boolean
vote: { id?: string; url: string; votes?: any } = null

Type declaration

  • Optional id?: string
  • url: string
  • Optional votes?: any
voteDisable: any
widgetPayload: IWidgetPayload

Accessors

  • get disabled(): boolean
  • set disabled(val: boolean): void
  • Returns boolean

  • Parameters

    • val: boolean

    Returns void

Methods

  • answerCountChanged(e: any): void
  • Parameters

    • e: any

    Returns void

  • connectedCallback(): void
  • Returns void

  • createVote(url: any, data?: Object): Promise<any>
  • Parameters

    • url: any
    • Optional data: Object

    Returns Promise<any>

  • detach(): void
  • Returns void

  • disconnectedCallback(): void
  • Returns void

  • dismiss(): Promise<void>
  • Returns Promise<void>

  • expire(): Promise<void>
  • Returns Promise<void>

  • firstUpdated(): void
  • Returns void

  • interactionEvent(voteCount?: number): void
  • Parameters

    • Optional voteCount: number

    Returns void

  • interactionTrack(): void
  • Returns void

  • Optional timeout argument. If no timeout arg passed, widget.widgetPayload.timeout is used. Initiates timer countdown, allows interaction/voting. Resolves when timer duration elapses. widget.phase = 'interactive'

    since

    1.18.0

    Parameters

    Returns Promise<void>

  • localize(key: string, variables?: Object): any
  • Parameters

    • key: string
    • Optional variables: Object

    Returns any

  • lockInVote(): void
  • Returns void

  • onResults(e: any): void
  • Parameters

    • e: any

    Returns void

  • rankChanged(widget: any, rewards: IReward[]): void
  • Fires rankchange event when user profile's rank updates

    fires

    rankchange

    Parameters

    Returns void

  • Widget ready state. widget.phase = 'ready'.

    since

    1.18.0

    Parameters

    Returns Promise<void>

  • removeListener(evt?: string): Promise<void>
  • Parameters

    • Optional evt: string

    Returns Promise<void>

  • resultEvent(): void
  • Returns void

  • Timer is removed, widget is disabled, widget vote/answers are shown. Resolves when timer duration elapses. If program rewards_type is either 'points' or 'badges' and user has interacted with widget, user points received are displayed. If program rewards_type is 'badges' and user has interacted with widget and user has received a new badge, the new badge is displayed. widget.phase = 'results' widget.disabled = true

    since

    1.18.0

    Parameters

    Returns Promise<void>

  • shouldUpdate(): boolean
  • Returns boolean

  • startInteractiveUntilTimer(): void
  • Returns void

  • submitVote(option: any): void
  • Parameters

    • option: any

    Returns void

  • updateVote(url: any, data: any): Promise<any>
  • Parameters

    • url: any
    • data: any

    Returns Promise<any>

  • updated(changedProps: any): void
  • Parameters

    • changedProps: any

    Returns void

  • voteBase(url: string, type: "post" | "patch", data?: Object): Promise<any>
  • Parameters

    • url: string
    • type: "post" | "patch"
    • Optional data: Object

    Returns Promise<any>

  • voteCountChanged(e: any): void
  • Parameters

    • e: any

    Returns void

  • widgetDismissClick(): Promise<void>
  • Returns Promise<void>

Legend

  • Namespace
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Property
  • Method
  • Accessor
  • Interface
  • Interface with type parameter
  • Enumeration
  • Inherited constructor

Generated using TypeDoc