UpsertAnswerComponent

Adds or edits a poll comment. By default it can be opened with the add/update poll comment action.

Poll Screenshot

Upsert poll answer Screenshot

Inputs and outputs

pollId

pollId: undefined | string

The poll id to display

Inherited from

BasePollComponent.pollId

Defined in

projects/stream-chat-angular/src/lib/polls/base-poll.component.ts:32


messageId

messageId: undefined | string

The message id the poll is attached to

Inherited from

BasePollComponent.messageId

Defined in

projects/stream-chat-angular/src/lib/polls/base-poll.component.ts:36


answer

answer: undefined | PollAnswer

The poll comment to edit, when in edit mode

Defined in

projects/stream-chat-angular/src/lib/polls/poll-actions/upsert-answer/upsert-answer.component.ts:30


closeModal

closeModal: () => void

The callback to close the modal the component is displayed in

Type declaration

(): void

Returns

void

Defined in

projects/stream-chat-angular/src/lib/polls/poll-actions/upsert-answer/upsert-answer.component.ts:34

© Getstream.io, Inc. All Rights Reserved.