Hierarchy
- LitElement
- LiveLikeWidgets
Index
Constructors
Properties
Methods
- after
Widgets Loaded - attach
- create
Sync Widget - create
Widget - create
Widget Element - detach
- disconnected
Callback - enqueue
Widget - first
Updated - get
Unclaimed Rewards - load
Next Page - load
Timeline - on
Initial Widgets Loaded - on
More Widgets Loaded - on
Widget Received - over
Ride Timer - register
Widget Mode - render
- show
Widget - start
- update
El - updated
- widget
Listener
Constructors
constructor
Returns LiveLikeWidgets
Properties
authors
Add to element to enabled listing the widget author tag in timeline mode
custom Template Renderer
custom Widget Renderer
data Id
has Widget Attached
hide_ dismiss_ button
Boolean to toggle displaying the widget's dismiss button
lang
Sets language code
loaded
If the element has loaded
mode
The mode of the element. Either "pop-up" or "timeline". Default is "pop-up"
programid
The id of the program to load the element with
queue
reactions
If true, widget reactions are shown once widget is not longer in 'ready' or 'interactive' phase
sync Strategy
Sets the custom syncStrategy
timeformat
Object containing time formatting properties.
Type declaration
day: string
hour: string
minute: string
month: string
year: string
timestamps
Add to element to enabled listing the widget timestamps tag in timeline mode
updating
Methods
after Widgets Loaded
Parameters
__namedParameters: Object
Returns Promise<void>
attach
Parameters
widgetEl: Widget
position: "prepend" | "append"
Returns Promise<void>
create Sync Widget
Creates and queues widget from widget id and kind. Displays widget according to syncStrategy.
Parameters
args: IWidgetCreationArgs
Returns Promise<unknown>
create Widget
Parameters
args: IWidgetDisplayArgs
Returns Promise<any>
create Widget Element
Creates and immediately displays widget.
Parameters
args: IWidgetCreationArgs
Returns Promise<unknown>
detach
Parameters
widgetEl: Widget
Returns Promise<void>
disconnected Callback
Returns void
enqueue Widget
Adds widget to the widgetQueue for spoiler prevention
Parameters
args: IWidgetDisplayArgs
Returns any
first Updated
Returns void
get Unclaimed Rewards
Returns Promise<any>
load Next Page
Returns any
load Timeline
Parameters
programId: any
Returns Promise<void>
on Initial Widgets Loaded
Parameters
__namedParameters: Object
Returns any
on More Widgets Loaded
Parameters
__namedParameters: Object
Returns any
on Widget Received
Parameters
widgetPayload: any
Returns any
over Ride Timer
Parameters
__namedParameters: Object
Returns number
register Widget Mode
Registers widget mode
Parameters
name: string
mode: WidgetMode
Returns void
render
Returns TemplateResult
show Widget
Immediately begins widget lifecycle and state transitions.
Parameters
args: IWidgetDisplayArgs
Returns Promise<unknown>
start
Parameters
args: IWidgetDisplayArgs
Returns Promise<any>
update El
Returns void
updated
Parameters
changedProps: any
Returns void
widget Listener
Parameters
e: any
Returns void
Generated using TypeDoc
livelike-widgets