Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 12.x
  • Verint Community
Verint Community 12.x
API Documentation glowLookUptextBox 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
        • evolutionScrollable 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
        • glowDateTimeSelector jQuery Plugin
        • glowDropDownList jQuery Plugin
        • glowLookUptextBox jQuery Plugin
        • glowModal 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

glowLookUptextBox jQuery Plugin


jQuery.fn.glowLookUptextBox

This plugin presents an auto-completing textbox that allows for single or multiple selections

Usage

Initiate a selection of text input elements to be lookup text boxes

$('selector').glowLookUpTextBox(options)

where selector contains <input type="text" /> element(s) and options is an optional object argument

Options

  • delimiter: delimiter to insert between selected items when multiple items are allowed and to use when
    • default: ','
  • allowDuplicates: boolean value of whether or not multiple same items can be selected
    • default: false
  • maxValues: maximum number of selectable items per control
    • default: 0
  • onGetLookUps: callback function which is passed both the current lookup text box instance and the currently-typed text. Typically used to perform an ajax callback and then populate the textbox with available matching options.
    • default: null
  • emptyHtml: string displayed when no selection is made
    • default: empty string
  • selectedLookUpsHtml: array of strings to pre-populate as selected
    • default: []
  • deleteImageUrl: URL of image to render within selected options which acts as a trigger for deleting the selected option
    • default: empty string
  • lookUpPopUpHeight: Height, in pixels of the suggestion pop-up
    • default: 200

Events

  • glowLookUpTextBoxChange: triggered when the value is changed

Methods

disabled

Gets and/or sets whether the lookup text box is disabled

var disabled = $('selector').glowLookUpTextBox('disabled');
$('selector').glowLookUpTextBox('disabled', false);

updateSuggestions

Sets the current list of autocompletion suggestions. Often used after a successful Ajax callback.

var suggestions = ["abc", "def", "ghi"];
$('selector').glowLookUpTextBox('updateSuggestions', suggestions);

removeByIndex

Removes a current selection by index

$('selector').glowLookUpTextBox('removeByIndex', 3);

removeByValue

Removes a current selection by value

$('selector').glowLookUpTextBox('removeByValue', 'value');

add

Adds a selected value

var lookup = $('selector').glowLookUpTextBox('createLookup', 'value', 'selected html', 'suggested html', true);
$('selector').glowLookUpTextBox('removeByValue', lookup);

getByIndex

Gets the a selected lookup by index

var selectedLookup = $('selector').glowLookUpTextBox('getByIndex', 2);

count

Gets the count of selected lookups

var count = $('selector').glowLookUpTextBox('count');

getCurrentSearchText

Gets the current search text

var text = $('selector').glowLookUpTextBox('getCurrentSearchText');

createLookUp

Manually creates a new lookup object suitable for adding as a selected lookup

var lookup = $('selector').glowLookUpTextBox('createLookup', 'value', 'selected html', 'suggested html', true);

  • 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