Skip to main content

Post Poll

Overview

LMPostPollUI is a component responsible for rendering the user interface of a poll within a post. It displays the poll question, available options, and allows users to vote on one or multiple choices, depending on the poll configuration. The component supports functionalities like displaying the total number of votes, handling user selections, and showing the poll's results in real-time or after submission.

LMFeedCreatePollQuestionView

Callbacks

  • onSubmitButtonClicked: Triggered when the submit button for the poll is clicked.
  • onAddPollOptionsClicked: Triggered when the user clicks to add additional options to the poll.
  • onPollOptionClicked: Triggered when a specific poll option is selected or clicked.
  • onPollEditClicked: Triggered when the user clicks to edit the poll.
  • onPollClearClicked: Triggered when the user clears or removes options from the poll.

Customisation

PropertyTypeDescription
pollQuestionStylesReact.CSSPropertiesStyle for the poll question text.
pollOptionSelectedColorstringColor for the selected poll option.
pollOptionOtherColorstringColor for the non-selected poll options.
pollOptionSelectedTextStylesReact.CSSPropertiesStyle for the text of the selected poll option.
pollOptionOtherTextStylesReact.CSSPropertiesStyle for the text of non-selected poll options.
pollOptionEmptyTextStylesReact.CSSPropertiesStyle for the text when there are no poll options.
pollOptionAddedByTextStylesReact.CSSPropertiesStyle for the text indicating who added a poll option.
votesCountStylesReact.CSSPropertiesStyle for the votes count display.
memberVotedCountStylesReact.CSSPropertiesStyle for the member voted count display.
pollInfoStylesReact.CSSPropertiesStyle for the poll information text.
submitButtonStylesReact.CSSPropertiesStyle for the submit button.
submitButtonTextStylesReact.CSSPropertiesStyle for the submit button text.
allowAddPollOptionButtonStylesReact.CSSPropertiesStyle for the button that allows adding more poll options.
allowAddPollOptionButtonTextStylesReact.CSSPropertiesStyle for the text on the button that allows adding more poll options.
editPollOptionsStylesReact.CSSPropertiesStyle for the edit poll options UI elements.
editPollOptionsIconstringPath or URL to the icon used for editing poll options.
clearPollOptionsStylesReact.CSSPropertiesStyle for the clear poll options UI elements.
clearPollOptionsIconstringPath or URL to the icon used for clearing poll options.