<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>poll UI Component</title><link>https://community.telligent.com/community/11/w/api-documentation/67186/poll-ui-component</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>poll UI Component</title><link>https://community.telligent.com/community/11/w/api-documentation/67186/poll-ui-component</link><pubDate>Tue, 19 Nov 2019 20:29:51 GMT</pubDate><guid isPermaLink="false">ed621e14-6f20-49e2-b298-569f4531b60b</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67186/poll-ui-component#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:29:51&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_telligent_evolution_ui_components_poll" name="jQuery_telligent_evolution_ui_components_poll"&gt;&lt;/a&gt;jQuery.telligent.evolution.ui.components.poll&lt;/h3&gt;
&lt;p&gt;[[ui JavaScript API Module|UI Component]] which handles presentation of poll behavior for content. Transforms the output from &lt;code&gt;$core_v2_ui.Poll()&lt;/code&gt;, which is a &lt;code&gt;&amp;lt;span class=&amp;quot;ui-poll&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/code&gt; stub.  [[ui JavaScript API Module|Overrides can be provided]] at the theme level to present polls differently.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Options" name="Options"&gt;&lt;/a&gt;Options&lt;/h3&gt;
&lt;p&gt;Data made available to instances of the component:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;#39;pollid&amp;#39;: (string) Poll Id Guid&lt;/li&gt;
&lt;li&gt;&amp;#39;reportUrl&amp;#39;: (string) Url to view vote report&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Example" name="Example"&gt;&lt;/a&gt;Example&lt;/h3&gt;
&lt;p&gt;A barebones UI component override which would result in rendering a read-only message of &amp;#39;Poll Id = &amp;#39; for a given call to &lt;code&gt;$core_v2_ui.Poll()&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.ui.components.poll = {
    setup: function() {
    },
    add: function(elm, options) {
        $(elm).html(&amp;#39;PollId = &amp;#39; + options.PollId);
     }
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>