<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>viewhtml UI Component</title><link>https://community.telligent.com/community/13/w/api-documentation/75833/viewhtml-ui-component</link><description>&lt;p&gt;&lt;span&gt;Developing on Verint Community? Use the API documentation as a reference for all supported interactions with Verint Community.&lt;/span&gt;&lt;/p&gt;</description><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>viewhtml UI Component</title><link>https://community.telligent.com/community/13/w/api-documentation/75833/viewhtml-ui-component</link><pubDate>Fri, 08 Mar 2024 17:52:24 GMT</pubDate><guid isPermaLink="false">d51c7ca6-5d1b-4d52-b347-0c8145dc55d2</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/13/w/api-documentation/75833/viewhtml-ui-component#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 03/08/2024 17:52:24&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;jQuery.telligent.evolution.ui.components.viewhtml&lt;/h3&gt;
&lt;p&gt;[[ui JavaScript API Module|UI Component]] which renders a file viewer responsively from the client side.  Transforms the output from &lt;code&gt;$core_v2_ui.GetViewHtml()&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-viewhtml&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/code&gt; stub. Dynamically requests a server-side rendeirng of a file viewer 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.GetViewHtml()&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 rendering of the viewed 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-viewhtml&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>