Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 11.x
  • Verint Community
Verint Community 11.x
API Documentation previewhtml UI Component
  • User Documentation
  • Ask the Community
  • API Documentation
  • Manager Training
  • Developer Training
  • Tags
  • More
  • Cancel
  • New
  • API Documentation
  • +In-Process API Documentation
  • +Plugin API Documentation
  • +REST API Documentation
  • -Widget, Theme, and Automation APIs
    • +Automation Events
    • -Client-side APIs
      • +Client Messages
      • +Composer Plugins
      • +JavaScript API Modules
      • +jQuery Events
      • +jQuery Plugins
      • -UI Components
        • bookmark UI Component
        • code UI Component
        • collapseexpand UI Component
        • feature UI Component
        • html UI Component
        • like UI Component
        • links UI Component
        • loading UI Component
        • masonry UI Component
        • moderate UI Component
        • page UI Component
        • poll UI Component
        • previewhtml UI Component
        • rate UI Component
        • resizedimage UI Component
        • scheduledfile UI Component
        • searchresult UI Component
        • select UI Component
        • squeezetext UI Component
        • theater UI Component
        • tip UI Component
        • tourtip UI Component
        • UI Component tag
        • viewhtml UI Component
        • webpreview UI Component
    • +Dynamic Configuration
    • +LESS Functions
    • +Script API Types
    • +Script APIs

previewhtml UI Component


jQuery.telligent.evolution.ui.components.previewhtml

UI Component which renders a responsive, auto-resizing preview of a file. Transforms the output from $core_v2_ui.GetPreViewHtml() when passed a value of true for AdjustToContainer, which returns a <span class="ui-previewhtml"></span> stub. Dynamically requests a server-side rendeirng of a file viewer'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.

It is typically not necessary to use this component directly, opting instead to render viewers in the Widget API with $core_v2_ui.GetPreViewHtml() with the AdjustToContainer option set to true.

Options

  • width: (number) Optional width constraint. Otherwise, fills the available client side parent container.
  • height: (number) Optional height constraint. Otherwise, fills the available client side parent container.
  • url: (string) URL of file to view
  • persisted: (boolean) Whether the file viewer's output should be persisted

Example

// Request a preview of the file in the maximum available width, 750px, as defined by the component's parent.
<div class="parent" style="width: 750px">
    <div class="ui-previewhtml" data-url=""/file/to/view.jpg"></div>
</div>

  • Share
  • History
  • More
  • Cancel
Related
Recommended
  • Telligent
  • Professional Services
  • Submit a Support Ticket
  • Become a Partner
  • Request a Demo
  • Contact Us

About
Privacy Policy
Terms of use
Copyright 2022 Verint, Inc.
Powered by Verint Community