Widget Documentation: LMFeedPostPollView
Widget: LMFeedPostPollView
The LMFeedPostPollView is a customizable view for displaying and interacting with polls, including options for configuration, styling, and click actions.
| Method | Description |
|---|---|
| setStyle(postPollViewStyle: LMFeedPostPollViewStyle) | Applies the given style to the poll view. |
| setPollTitle(pollTitle: String) | Sets the title of the poll. |
| setPollInfo(pollInfo: String) | Sets additional poll information. |
| setMemberVotedCount(pollAnswerText: String) | Displays the count of members who have voted. |
| setTimeLeft(timeLeft: String) | Sets the time left for the poll. |
| setPollOptions(pollPosition: Int, options: List, optionStyle: LMFeedPostPollOptionViewStyle, listener: LMFeedPollOptionsAdapterListener) | Configures the poll options. |
| setSubmitButtonVisibility(pollViewData: LMFeedPollViewData) | Controls the visibility of the submit button. |
| setAddPollOptionButtonVisibility(pollViewData: LMFeedPollViewData) | Controls the visibility of the "add poll option" button. |
| setEditPollVoteVisibility(pollViewData: LMFeedPollViewData) | Controls the visibility of the "edit poll vote" option. |
| setPollTitleClicked(listener: LMFeedOnClickListener) | Registers a click listener for the poll title. |
| setEditPollClicked(listener: LMFeedOnClickListener) | Registers a click listener for the edit poll action. |
| setClearPollClicked(listener: LMFeedOnClickListener) | Registers a click listener for the clear poll action. |
| setAddPollOptionClicked(listener: LMFeedOnClickListener) | Registers a click listener for the "add poll option" button. |
| setSubmitPollVoteClicked(listener: LMFeedOnClickListener) | Registers a click listener for submitting poll votes. |
| setMemberVotedCountClicked(listener: LMFeedOnClickListener) | Registers a click listener for the member-voted count. |
| setEditPollVoteClicked(listener: LMFeedOnClickListener) | Registers a click listener for editing poll votes. |
View Style: LMFeedPostPollViewStyle
The LMFeedPostPollViewStyle defines the appearance and layout properties for the LMFeedPostPollView, including text, button, and icon configurations.
| Field | Description | Type |
|---|---|---|
| pollTitleTextStyle | Defines the text style for the poll title. | LMFeedTextStyle |
| pollOptionsViewStyle | Configures the style for poll options. | LMFeedPostPollOptionViewStyle |
| membersVotedCountTextStyle | Sets the text style for the member-voted count. | LMFeedTextStyle |
| pollInfoTextStyle | Defines the text style for additional poll information. | LMFeedTextStyle |
| submitPollVoteButtonStyle | Configures the style for the submit button. | LMFeedButtonStyle |
| pollExpiryTextStyle | Configures the text style for the poll expiry time. | LMFeedTextStyle |
| addPollOptionButtonStyle | Sets the style for the "add poll option" button. | [LMFeedButtonStyle]../Fundamentals/LMFeedButton.md) |
| editPollIconStyle | Defines the style of the edit poll icon. | LMFeedIconStyle |
| clearPollIconStyle | Defines the style of the clear poll icon. | LMFeedIconStyle |
| editPollVoteTextStyle | Configures the text style for editing poll votes. | LMFeedTextStyle |