Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 12.x
  • Verint Community
Verint Community 12.x
API Documentation glowOrderedList 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

glowOrderedList jQuery Plugin


jQuery.fn.glowOrderedList

This plugin presents a sortable list which supports ordering, adding, and removing items

Usage

Initiate an orderable list of items

$('selector').glowOrderedList(options)

where selector contains select element(s) and options is an optional object argument

Options

  • width: width of the ordered list
    • default: 200
  • height: height of the ordered list
    • default: 300
  • itemsHtml: array of html element strings to render as items in the ordered list
    • default: []
  • draggableOrderedLists:
    • default: null

Events

  • glowOrderedListItemSelected: triggered when an item is selected
  • glowOrderedListItemRemoved: triggered when an item is removed
  • glowOrderedListItemMoved: triggered when an item is moved
  • glowOrderedListItemAdded: triggered when an item is addeds

Methods

getIndexByPosition

Returns the index of item by an absolute x, y pixel position

var x = 100, y = 200;
$('selector').glowOrderedList('getIndexByPosition', x, y)

highlight

Boolean value which sets whether the items are highlighted

$('selector').glowOrderedList('getIndexByPosition', true)

addDraggedItem

Adds a dragged item at a given index

var index = 2;
var item = $('selector').glowOrderedList('createItem', {value: 'value', text: 'text', html: 'html', orderable: true, selectable: true});
$('selector').glowOrderedList('addDraggedItem', item, index, event);

selectedIndex

Returns the current selected index

var index = $('selector').glowOrderedList('selectedIndex');

moveTop

Moves the currently selected item to the beginning of the list

$('selector').glowOrderedList('moveTop');

moveUp

Moves the currently selected item up by one position

$('selector').glowOrderedList('moveUp');

moveDown

Moves the currently selected item down by one position

$('selector').glowOrderedList('moveDown');

moveBottom

Moves the currently selected item to the end of the list

$('selector').glowOrderedList('moveBottom');

resize

Resizes the ordered list to a given pixel width and height

var x = 400;
var y = 300;
$('selector').glowOrderedList('resize', x, y);

disabled

Gets and/or sets whether the ordered list is disabled

var isDisabled = $('selector').glowOrderedList('disabled');
$('selector').glowOrderedList('disabled', true);

select

Selects an item by index

var index = 4;
$('selector').glowOrderedList('select', index);

add

Add a new ordered list item

var item = $('selector').glowOrderedList('createItem', {value: 'value', text: 'text', html: 'html', orderable: true, selectable: true});
$('selector').glowOrderedList('add', item);

remove

Removes an ordered list item

$('selector').glowOrderedList('remove', item);

clear

Removes all items

$('selector').glowOrderedList('clear');

insert

Add a new ordered list item at a specific index

var item = $('selector').glowOrderedList('createItem', {value: 'value', text: 'text', html: 'html', orderable: true, selectable: true});
$('selector').glowOrderedList('insert', item, 4);

getByIndex

Returns an item at a specific index

var item = $('selector').glowOrderedList('getByIndex', 4);

count

Returns the count of items

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

createItem

Creates a new ordered list item suitable for adding/inserting

var item = $('selector').glowOrderedList('createItem', {value: 'value', text: 'text', html: 'html', orderable: true, selectable: 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