Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 12.x
  • Verint Community
Verint Community 12.x
API Documentation feature 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
        • Idea Voting 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
        • tag UI Component
        • theater UI Component
        • tip UI Component
        • tourtip UI Component
        • viewhtml UI Component
        • webpreview UI Component
    • +Dynamic Configuration
    • +LESS Functions
    • +Script API Types
    • +Script APIs

feature UI Component


jQuery.telligent.evolution.ui.components.feature

UI Component which handles presentation of feature behavior for content. Transforms the output from $core_v2_ui.Feature(), which is a <span class="ui-feature"></span> stub. The default implementation uses the evolutionFeature plugin. Overrides can be provided at the theme level to present features differently.

Options

Data made available to instances of the component:

  • contenttypeid: (string) Content Type Id Guid
  • contentid: (string) Content Id Guid
  • typeid: (string) Feature Type Id Guid
  • value: (string) If the content is featured or not by the accessing user (true or false)
  • contenttypename: (string) Type name for this content

Example

A barebones UI component override which would result in rendering a read-only message of 'Featured? Yes/No' for a given call to $core_v2_ui.Feature().

$.telligent.evolution.ui.components.feature = {
    setup: function() {
    },
    add: function(elm, options) {
        $(elm).html('Featured? ' + (options.value == 'true' ? 'Yes' : 'No'));

        console.log('ContentId: ' + options.contentid);
        console.log('ContentTypeId: ' + options.contenttypeid);
        console.log('TypeId: ' + options.typeid);
        console.log('PanelUrl: ' + options.panelurl);
        console.log('Value: ' + options.value);
        console.log('ContentTypeName: ' + options.contenttypename);
    }
}

Default Implementation

For reference purposes or as the basis for an override:

$.telligent.evolution.ui.components.feature = {
    setup: function() {
    },
    add: function(elm, options) {

        elm.empty();

        var config = {
            contentId: options.contentid,
            contentTypeId: options.contenttypeid,
            typeId: options.typeid,
            panelUrl: options.panelurl,
            initialState: options.value == 'true',
            contentTypeName: options.contenttypename,
            onClick: function(panelUrl, complete) {

  • 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 2024 Verint, Inc.
Powered by Verint Community