Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 11.x
  • Verint Community
Verint Community 11.x
API Documentation evolutionToggleLink jQuery Plugin
  • 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
        • dynamicForm jQuery Plugin
        • evolutionBookmark jQuery Plugin
        • evolutionCodeEditor jQuery Plugin
        • evolutionComposer jQuery Plugin
        • evolutionFeature jQuery Plugin
        • evolutionHighlight jQuery Plugin
        • evolutionHtmlEditor jQuery Plugin
        • evolutionInlineTagEditor jQuery Plugin
        • evolutionLike jQuery Plugin
        • evolutionMasonry jQuery Plugin
        • evolutionModerate jQuery Plugin
        • evolutionPager jQuery Plugin
        • evolutionProgressIndicator jQuery Plugin
        • evolutionResize jQuery Plugin
        • evolutionScrollSlider jQuery Plugin
        • evolutionSqueezeText jQuery Plugin
        • evolutionStarRating jQuery Plugin
        • evolutionTagTextBox jQuery Plugin
        • evolutionTextEditor jQuery Plugin
        • evolutionTheater jQuery Plugin
        • evolutionTip jQuery Plugin
        • evolutionToggleLink jQuery Plugin
        • evolutionTransform jQuery Plugin
        • evolutionUserFileTextBox jQuery Plugin
        • evolutionValidation jQuery Plugin
        • glowColorSelector jQuery Plugin
        • glowDropDownList jQuery Plugin
        • glowLookUptextBox jQuery Plugin
        • glowMultiUpload jQuery Plugin
        • glowOrderedList jQuery Plugin
        • glowPatternedTextBox jQuery Plugin
        • glowPopUpMenu jQuery Plugin
        • glowPopUpPanel jQuery Plugin
        • glowTabbedPanes jQuery Plugin
        • glowTabSet jQuery Plugin
        • glowTransition jQuery Plugin
        • glowTree jQuery Plugin
        • glowUpload jQuery Plugin
        • uilinks jQuery Plugin
      • +UI Components
    • +Dynamic Configuration
    • +LESS Functions
    • +Script API Types
    • +Script APIs

evolutionToggleLink jQuery Plugin


jQuery.fn.evolutionToggleLink

This plugin automates behavior associated to links that toggle state and are generally control state that is updated via an AJAX callback.

Usage

Initializes the selected <a /> tag(s) as toggle links

$('SELECTOR').evolutionToggleLink(options)

Options

  • onHtml: the HTML to render within the <a /> tag when the toggle link is in the "on" state.
  • offHtml: the HTML to render within the <a /> tag when the toggle link is in the "off" state.
  • processingHtml: the HTML to render within the <a /> tag when the toggle link is processing.
  • changeState: the function, taking the state boolean as a parameter, that performs the requested state change. It is expected that this function, when the state change is complete, will change the rendered value of the toggle link via the val method. The toggle link will remain in the processing state until this callback occurs.
  • onCssClass: the CSS class to apply to the <a /> tag when it is in the "on" state.
  • offCssClass: the CSS class to apply to the <a /> tag when it is in the "off" state.
  • processingCssClass: the CSS class to apply to the <a /> tag when it is processing.
  • onTitle: the value for the title attribute when the toggle link is in the "on" state.
  • offTitle: the value for the title attribute when the toggle link is in the "off" state.
  • processingTitle: the value for the title attribute when the toggle link is processing.
  • val: the initial value for the toggle link.

Methods

val

Retrieves and/or sets the current value of the toggle link.

// Returns the current state of the toggle link as a Boolean.
$('SELECTOR').evolutionToggleLink('val')

// Sets the rendered state of the toggle link to the specified Boolean state.
$('SELECTOR').evolutionToggleLink('val', state)

  • 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