choices/index
@boldpenguin/sdk-redux › Globals › "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:
Name | Type | Description |
---|---|---|
state | BpSdkStore | BpSdk Redux store |
Returns: IChoiceState