Namespace: l2l

ks. l2l

Source:

Members

<private, static> _events :Object.<string, function()>

Events bounds into the widget
Source:

<static> options :Object

Widget options, with default values
Properties:
Name Type Argument Default Description
icons Object the list of icons used (refers to jquery-ui icon classes)
width String | Number <optional>
'auto' the lists width as auto, a css string or in pixel
height String | Number <optional>
'auto' the lists height as auto, a css string or in pixel
clear String | Boolean <optional>
'right' the clear/trash button strategy in 'right', 'left', 'all' or false by example, left removes selected items from the left list, etc.
interconnect Boolean <optional>
false in case of multiple l2l widgets, if we can drag elements into another widget
Source:

Methods

<private, static> _change(event)

Fires a change event
Parameters:
Name Type Description
event Object the source event
Source:
Fires:

<private, static> _clear(event)

Action to move items from right to left
Parameters:
Name Type Description
event Object the source event
Source:

<static> _controlsHtml() → {String}

Build the HTML elements used for the controls
Source:
Returns:
the html string
Type
String

<private, static> _create()

Initialize the widget
Source:

<private, static> _getSortAlg() → {Function}

Get the sort algorithm
Source:
Returns:
the algo
Type
Function

<static> _iconHtml() → {String}

Build the HTML element for an icon regarding the options
Source:
Returns:
the html string
Type
String

<private, static> _l2r(event)

Action to move items from left to right
Parameters:
Name Type Description
event Object the source event
Source:

<private, static> _r2l(event)

Action to move items from right to left
Parameters:
Name Type Description
event Object the source event
Source:

<private, static> _sort(list)

Sort the items of a list
Parameters:
Name Type Description
list Object the list element to sort
Source:

<static> _updateSize()

Update the lists size according to the options
Source:

<private, static> getItems() → {Items}

Get the items on the lists
Source:
Returns:
Type
Items

<static> sortAlg(current, next) → {Number}

Current/Next Sort algorithm that can be overridden via the options
Parameters:
Name Type Description
current Objec the current list ite
next Objec the next list item
Source:
Returns:
0 for equals, positive for greater than and negative for lesser than
Type
Number

Events

change

ks.l2l.change event
Type:
Source: