<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>theater UI Component</title><link>https://community.telligent.com/community/11/w/api-documentation/67193/theater-ui-component</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>theater UI Component</title><link>https://community.telligent.com/community/11/w/api-documentation/67193/theater-ui-component</link><pubDate>Tue, 19 Nov 2019 20:28:46 GMT</pubDate><guid isPermaLink="false">9aa2ab6f-3cb5-47ea-8fa2-b1511f68c4b9</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67193/theater-ui-component#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:46&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_theater" name="jQuery_telligent_evolution_ui_components_theater"&gt;&lt;/a&gt;jQuery.telligent.evolution.ui.components.theater&lt;/h3&gt;
&lt;p&gt;[[ui JavaScript API Module|UI Component]] which handles automatic setup of content theaters. Transforms &lt;code&gt;&amp;lt;span class=&amp;quot;ui-theater&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/code&gt; elements. The default implementation uses the [[evolutionTheater jQuery Plugin|evolutionTheater plugin]]. [[ui JavaScript API Module|Overrides can be provided]] at the theme level to present theaters differently, either by different usage of [[evolutionTheater jQuery Plugin|evolutionTheater plugin]] or by an entirely different theater UI.&lt;/p&gt;
&lt;h4&gt;&lt;a id="Used_by" name="Used_by"&gt;&lt;/a&gt;Used by:&lt;/h4&gt;
&lt;p&gt;This component is primarily used by rendered activity stories provided by IActivityStory plugins or rendered search results provided by ISearchableContentType which also implement ajax callbacks via IHttpCallback for providing theater content.&lt;/p&gt;
&lt;h4&gt;&lt;a id="Next_Previous_links" name="Next_Previous_links"&gt;&lt;/a&gt;Next/Previous links&lt;/h4&gt;
&lt;p&gt;The [[evolutionTheater jQuery Plugin|evolutionTheater plugin]] provides the optional function parameters &lt;code&gt;nextContent&lt;/code&gt; and &lt;code&gt;previousContent&lt;/code&gt; which, when provided, instruct the plugin to render forward/back links and asynchronously return content to replace in the theater when those links are returned. The implementation of how this content is produced is provided by the plugin&amp;#39;s consumer.&lt;/p&gt;
&lt;p&gt;The default &lt;code&gt;jQuery.telligent.evolution.ui.components.theater&lt;/code&gt; implementation produces content for these function parameters via ajax requests to endpoints for forward/back theater content. The URLs it uses for endpoints are provided by the current theater content. If the theater content contains an &lt;code&gt;anchor&lt;/code&gt; element with the &lt;code&gt;data-nexttheaterurl&lt;/code&gt; and/or &lt;code&gt;data-previoustheaterurl&lt;/code&gt;, then &lt;code&gt;previousContent&lt;/code&gt; and/or &lt;code&gt;nextContent&lt;/code&gt; will be set on &lt;code&gt;jQuery.evolutionTheater&lt;/code&gt; with functions which perform ajax requests against these data attributes&amp;#39; values. The same process is followed for subsequently-loaded theater content. In this way, theater content is responsible for identifying what other items may be navigated to from itself.&lt;/p&gt;
&lt;h4&gt;&lt;a id="Comments" name="Comments"&gt;&lt;/a&gt;Comments&lt;/h4&gt;
&lt;p&gt;The default ui component implementation also bundles automatic support for adding content comments when the theater content contains comment-related markup.&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;&lt;code&gt;theaterurl&lt;/code&gt;: Ajax endpoint which returns rendered content to be shown within a theater&lt;/li&gt;
&lt;li&gt;&lt;code&gt;disabletheater&lt;/code&gt;: When true, theater does not render&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;Given the markup...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;span class=&amp;quot;ui-theater&amp;quot; data-theaterurl=&amp;quot;[AJAX ENDPOINT]&amp;quot;&amp;gt;View a Preview&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;... and an ajax endpoint which returns an html fragment ...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;
    &amp;lt;!-- some preview image --&amp;gt;
    &amp;lt;img src=&amp;quot;...&amp;quot; /&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;to show within the theater, the UI component automatically handles click events and renders a theater with content from the ajax endpoint using [[evolutionTheater jQuery Plugin|jQuery.evolutionTheater]].&lt;/p&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>