<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>previewhtml UI Component</title><link>https://community.telligent.com/community/12/w/api-documentation/71743/previewhtml-ui-component</link><description>Developing on Verint Community? Use the API documentation as a reference for all supported interactions with Verint Community.</description><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>previewhtml UI Component</title><link>https://community.telligent.com/community/12/w/api-documentation/71743/previewhtml-ui-component</link><pubDate>Fri, 15 Jan 2021 21:45:47 GMT</pubDate><guid isPermaLink="false">aa380a1b-bb25-4884-828c-a430110e7699</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/12/w/api-documentation/71743/previewhtml-ui-component#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 01/15/2021 21:45:47&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;jQuery.telligent.evolution.ui.components.previewhtml&lt;/h3&gt;
&lt;p&gt;[[ui JavaScript API Module|UI Component]] which renders a responsive, auto-resizing preview of a file.  Transforms the output from &lt;code&gt;$core_v2_ui.GetPreViewHtml()&lt;/code&gt; when passed a value of &lt;code&gt;true&lt;/code&gt; for &lt;code&gt;AdjustToContainer&lt;/code&gt;, which returns a &lt;code&gt;&amp;lt;span class=&amp;quot;ui-previewhtml&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/code&gt; stub. Dynamically requests a server-side rendeirng of a file viewer&amp;#39;s preview for a URL scaled to the available space on the client-side, optionally configured to specific requested widths and heights. Re-requests new renderings on browser resize or [[orientationchange jQuery Event|orientationchange]].&lt;/p&gt;
&lt;p&gt;It is typically not necessary to use this component directly, opting instead to render viewers in the Widget API with &lt;code&gt;$core_v2_ui.GetPreViewHtml()&lt;/code&gt; with the &lt;code&gt;AdjustToContainer&lt;/code&gt; option set to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;width&lt;/code&gt;: (number) Optional width constraint. Otherwise, fills the available client side parent container.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;height&lt;/code&gt;: (number) Optional height constraint. Otherwise, fills the available client side parent container.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;url&lt;/code&gt;: (string) URL of file to view&lt;/li&gt;
&lt;li&gt;&lt;code&gt;persisted&lt;/code&gt;: (boolean) Whether the file viewer&amp;#39;s output should be persisted&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Example&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;// Request a preview of the file in the maximum available width, 750px, as defined by the component&amp;#39;s parent.
&amp;lt;div class=&amp;quot;parent&amp;quot; style=&amp;quot;width: 750px&amp;quot;&amp;gt;
    &amp;lt;div class=&amp;quot;ui-previewhtml&amp;quot; data-url=&amp;quot;&amp;quot;/file/to/view.jpg&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&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>