<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionBookmark jQuery Plugin</title><link>https://community.telligent.com/community/13/w/api-documentation/75766/evolutionbookmark-jquery-plugin</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>evolutionBookmark jQuery Plugin</title><link>https://community.telligent.com/community/13/w/api-documentation/75766/evolutionbookmark-jquery-plugin</link><pubDate>Fri, 08 Mar 2024 17:51:32 GMT</pubDate><guid isPermaLink="false">5a46d42b-bb77-4450-a3b5-224f058d4e42</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/13/w/api-documentation/75766/evolutionbookmark-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 03/08/2024 17:51:32&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;jQuery.fn.evolutionBookmark&lt;/h3&gt;
&lt;p&gt;This plugin supports rendering a bookmark toggle link, allowing the user to bookmark or unbookmark content.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionBookmark(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where &amp;#39;SELECTOR&amp;#39; is a span.&lt;/p&gt;
&lt;h3&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;contentId&lt;/code&gt;: (string) content ID&lt;/li&gt;
&lt;li&gt;&lt;code&gt;contentTypeId&lt;/code&gt;: (string) content type ID&lt;/li&gt;
&lt;li&gt;&lt;code&gt;typeId&lt;/code&gt;: (string) bookmark type ID&lt;/li&gt;
&lt;li&gt;&lt;code&gt;contentTypeName&lt;/code&gt;: (string) the name of the content type&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;initialState&lt;/code&gt;: (boolean) content is bookmarked
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;false&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onBookmark&lt;/code&gt;: (function) callback function when a selection is made. The function is passed contentId, contentTypeId, typeId, and a callback function to call when processing is complete&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onUnbookmark&lt;/code&gt;: (function) callback function when a selection is made. The function is passed contentId, contentTypeId, typeId, and a callback function to call when processing is complete&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;deleteBookmarkText&lt;/code&gt;: Label for the unbookmark link. &lt;code&gt;{content_type_name}&lt;/code&gt; is replaced with the content&amp;#39;s type name.
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;Unbookmark {content_type_name}&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;addBookmarkText&lt;/code&gt;: Label for the bookmark link. &lt;code&gt;{content_type_name}&lt;/code&gt; is replaced with the content&amp;#39;s type name.
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;Bookmark this {content_type_name}&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;processingText&lt;/code&gt;: Label for the link when it is processing. &lt;code&gt;{content_type_name}&lt;/code&gt; is replaced with the content&amp;#39;s type name.
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;...&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;addBookmarkCssClass&lt;/code&gt;: CSS class to apply to the bookmark link.
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;internal-link favorite-off&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;deleteBookmarkCssClass&lt;/code&gt;: CSS class to apply to the unbookmark link.
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;internal-link favorite-on&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;processingCssCLass&lt;/code&gt;: CSS class to apply to the link when processing.
&lt;ul&gt;
&lt;li&gt;default &lt;code&gt;&amp;#39;internal-link processing&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Example&lt;/h3&gt;
&lt;p&gt;Given the following span to contain a bookmark control:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;span id=&amp;quot;bookmarkControl&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The following will initialize a bookmark control, using defaults for most options&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var bookmarkControl = $(&amp;#39;#bookmarkControl&amp;#39;);
bookmarkControl.evolutionBookmark({
    initialState: true,  // content is bookmarked
    contentId: &amp;#39;C512D1A1-ED6C-442D-BC9d-3587CD711D35&amp;#39;,
    contentTypeId: &amp;#39;F7D226AB-D59F-475C-9D22-4A79E3F0EC07&amp;#39;,
    contentTypeName: &amp;#39;Blog Post&amp;#39;,
    onBookmark: function(contentId, contentTypeId, typeId, callback) {
        alert(contentId + &amp;#39; bookmarked!&amp;#39;);

        // ...perform AJAX-based saving of bookmark here...

        // After a successful save, callback to notify the bookmark plugin
        callback();
    },
    onUnbookmark: function(contentId, contentTypeId, typeId, callback) {
        alert(contentId + &amp;#39; unbookmarked!&amp;#39;);

        // ...perform AJAX-based saving of bookmark here...

        // After a successful save, callback to notify the bookmark plugin
        callback();
    }
});
&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>