Class Widget
Hierarchy
- LitElement
- Widget
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Properties
authors
changed
channel
choices
Readonly
data Id
date Time Formatter
Type declaration
- (__namedParameters): string
Parameters
__namedParameters: {
format: any;
lang: any;
time: any;
}format: any
lang: any
time: any
Returns string
Since
2.43.1
Argument
object of type {time, format, lang}
first Interaction Time
hide_ dismiss_ button
initial Load
interacted
interaction
interactions
interactive Until Timer Timeout
is Interactable
is Stock Widget
kind
lang
mode
options
phase
Readonly
programid
question
reactions
reply
selected Option
synthetic Increment
timeformat
timeout
timestamps
vote
id?: string;
url: string;
votes?: any;
} = null
Type declaration
Optional
id?: stringurl: string
Optional
votes?: any
vote Disable
widget Payload
Accessors
disabled
- get disabled(): boolean
Returns boolean
- set disabled(val): void
Parameters
val: boolean
Returns void
Methods
answer Count Changed
connected Callback
create Vote
detach
disconnected Callback
dismiss
expire
finished
- finished(args?): Promise<void>
Parameters
Optional
args: IWidgetTimeoutArgs
Returns Promise<void>
Since
1.18.0
first Updated
interaction Event
interaction Track
interactive
- interactive(args?): Promise<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'
Parameters
Optional
args: IWidgetTimeoutArgs
Returns Promise<void>
Since
1.18.0
localize
lock In Vote
on Results
rank Changed
- rank
Changed(widget, rewards): void Fires rankchange event when user profile's rank updates
Parameters
widget: any
rewards: IReward[]
Returns void
Fires
rankchange
ready
- ready(args?): Promise<void>
Widget ready state. widget.phase = 'ready'.
Parameters
Optional
args: IWidgetTimeoutArgs
Returns Promise<void>
Since
1.18.0
remove Listener
render Sponsor
render Widget Footer
Returns TemplateResult
result Event
results
- results(args?): Promise<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
Parameters
Optional
args: IWidgetTimeoutArgs
Returns Promise<void>
Since
1.18.0
should Update
start Interactive Until Timer
submit Vote
update Vote
updated
vote Base
vote Count Changed
widget Dismiss Click
Generated using TypeDoc
Formats timestamp