Skip to main content

choices/index

@boldpenguin/sdk-reduxGlobals"choices/index"

Index

Variables

Functions

Variables

Const getSelectedChoices

getSelectedChoices: function & OutputSelectorFields‹function› & object = createSelector( [getChoices, (_: BpSdkStore, questionGroupId: string) => questionGroupId], (choiceMap, questionGroupId) => choiceMap[questionGroupId]?.list ?? [] )

Get selected question's current autocomplete choices, indexed by question ID

param BpSdk Redux store

param question id to use as key

Functions

Const getChoices

getChoices(state: BpSdkStore): IChoiceState

Gets all current autocomplete choices, indexed by question ID

Parameters:

NameTypeDescription
stateBpSdkStoreBpSdk Redux store

Returns: IChoiceState