Type aliases
BaseWidgetActionArgs
BaseWidgetActionArgs: { widgetId: string }
ChatMessagesState
Chat
Messages
State
: { chatMessages
: IChatMessage[]; chatMessagesLoaded
: boolean }Type declaration
chatMessagesLoaded: boolean
DateTime
DateTime: Date | string | number
IChatMessageResponsePayload
IChatUserMessageResponsePayload
IQuoteMessageResponsePayload
IUpdateNumberPredictionOptionActionArg
Type declaration
optionIndex: number
widgetId: string
IUpdateSliderMagnitudeAction
IUpdateSliderMagnitudeAction: { magnitude: number; widgetId: string }
Type declaration
magnitude: number
widgetId: string
LLBaseWidgetProps
Type declaration
Optional FooterComponent?: typeof LLWidgetFooter
Optional FooterComponentStyles?: LLWidgetFooterProps["styles"]
Optional HeaderComponent?: typeof LLWidgetHeader
Optional HeaderComponentStyles?: LLWidgetHeaderProps["styles"]
Optional WidgetComponent?: typeof LLWidget
Optional WidgetComponentStyles?: LLWidgetProps["styles"]
Optional interactiveTimeout?: number | null
programId: string
widgetId: string
onDismiss?:function
onInteractiveTimeout?:function
- onInteractiveTimeout(): void
LLPickerEmptyComponentProps
LLPickerEmptyComponentStyles
LLPickerEmptyComponentStyles: { text: TextStyle }
LLStore
LLStore
<TValue>: { listeners
: LLStoreListener<TValue>[]; value
: TValue; get
: any; notify
: any; set
: any; subscribe
: any }Type parameters
Type declaration
value: TValue
get:function
notify:function
set:function
subscribe:function
LLStoreListener
LLStoreListener<TValue>: (value: TValue) => void
Type parameters
LLStoreUnsubscriber
LLStoreUnsubscriber: () => void
LLVoteWidgetBodyStyles
LLVoteWidgetBodyStyles: { bodyContainer: ViewStyle }
LLWidgetChoiceOptionProps
LLWidget
Choice
Option
Props
: { OptionComponent
?: typeof LLWidgetOption; OptionComponentStyles
?: LLWidgetOptionProps["styles"]; optionIndex
: number; selectedOptionIndex
: number; widgetId
: string; onOptionChange
: any }Type declaration
Optional OptionComponent?: typeof LLWidgetOption
Optional OptionComponentStyles?: LLWidgetOptionProps["styles"]
optionIndex: number
selectedOptionIndex: number
widgetId: string
onOptionChange:function
- onOptionChange(optionIndex: number): void
LLWidgetOptionResultBarProps
LLWidgetOptionResultBarStyles
LLWidgetOptionResultBarStyles: { resultBarContainer: ViewStyle; resultBarView: TextStyle }
Type declaration
resultBarContainer: ViewStyle
resultBarView: TextStyle
LLWidgetOptionStyles
LLWidgetOptionStyles: { correctOptionContainer: ViewStyle; incorrectOptionContainer: ViewStyle; optionContainer: ViewStyle; optionImage: ImageStyle; optionText: TextStyle; optionTextContainer: ViewStyle; percentText: TextStyle; selectedOptionContainer: ViewStyle }
Type declaration
correctOptionContainer: ViewStyle
incorrectOptionContainer: ViewStyle
optionContainer: ViewStyle
optionImage: ImageStyle
optionText: TextStyle
optionTextContainer: ViewStyle
percentText: TextStyle
selectedOptionContainer: ViewStyle
LLWidgetProps
LLWidget
Props
: ComponentStyleProp<LLWidgetStyles> & { ErrorComponent
?: ComponentType<unknown>; LoadingComponent
?: ComponentType<unknown>; programId
: string; widgetId
: string; widgetKind
: WidgetKind; children
?: any; onDismiss
?: any }LLWidgetStyles
LLWidgetStyles: { errorText: TextStyle; widgetContainer: ViewStyle }
Type declaration
errorText: TextStyle
widgetContainer: ViewStyle
LLWidgetVoteOptionProps
LLWidget
Vote
Option
Props
: { OptionComponent
?: typeof LLWidgetOption; OptionComponentStyles
?: LLWidgetOptionProps["styles"]; correctable
?: boolean; optionIndex
: number; selectedOptionIndex
: number; widgetId
: string; onOptionChange
: any }Type declaration
Optional OptionComponent?: typeof LLWidgetOption
Optional OptionComponentStyles?: LLWidgetOptionProps["styles"]
Optional correctable?: boolean
optionIndex: number
selectedOptionIndex: number
widgetId: string
onOptionChange:function
- onOptionChange(optionIndex: number): void
UpdateSelectedOptionIndexActionArgs
UpdateWidgetAverageMagnitudeArgs
UpdateWidgetChoicesActionArgs
UpdateWidgetOptionsActionArgs
UpdateWidgetPhaseActionArgs
UpdateWidgetResultStateActionArgs
UpdateWidgetStateActionArgs
WidgetState
Type declaration
Optional selectedOptionIndex?: number