QuestionAnsweringActions
QuestionAnsweringActions
This is for:
DeveloperThe question answering action creators.
See Dispatch Actions.
Loader Function
loadQuestionAnsweringActions
Loads the questionAnswering
reducer and returns possible action creators.
Parameters
-
engine:
SearchEngine
The headless engine.
Returns QuestionAnsweringActionCreators
: The question answering action creators.
QuestionAnsweringActionCreators
closeFeedbackModal
Closes the feedback modal of a smart snippet.
Returns PayloadAction
: A dispatchable action.
collapseSmartSnippet
Collapses a smart snippet.
Returns PayloadAction
: A dispatchable action.
collapseSmartSnippetRelatedQuestion
Collapses the specified snippet suggestion.
Parameters
-
payload:
QuestionAnsweringUniqueIdentifierActionCreatorPayload
The action creator payload.
Returns PayloadAction<QuestionAnsweringUniqueIdentifierActionCreatorPayload>
: A dispatchable action.
dislikeSmartSnippet
Dislikes a smart snippet (a 'thumbs down' reaction).
Returns PayloadAction
: A dispatchable action.
expandSmartSnippet
Expands a smart snippet.
Returns PayloadAction
: A dispatchable action.
expandSmartSnippetRelatedQuestion
Expands the specified snippet suggestion.
Parameters
-
payload:
QuestionAnsweringUniqueIdentifierActionCreatorPayload
The action creator payload.
Returns PayloadAction<QuestionAnsweringUniqueIdentifierActionCreatorPayload>
: A dispatchable action.
likeSmartSnippet
Likes a smart snippet (a 'thumbs up' reaction).
Returns PayloadAction
: A dispatchable action.
openFeedbackModal
Opens the feedback modal of a smart snippet.
Returns PayloadAction
: A dispatchable action.
Related Types
QuestionAnsweringUniqueIdentifierActionCreatorPayload
Properties
-
questionAnswerId:
string