- Source:
- l2l.js, line 5
Members
-
<private, static> _events :Object.<string, function()>
-
Events bounds into the widget
- Source:
- l2l.js, line 129
-
<static> options :Object
-
Widget options, with default values
- Source:
- l2l.js, line 23
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
Methods
-
<private, static> _change(event)
-
Fires a change event
Parameters:
Name Type Description event
Object the source event - Source:
- l2l.js, line 178
Fires:
-
<private, static> _clear(event)
-
Action to move items from right to left
Parameters:
Name Type Description event
Object the source event - Source:
- l2l.js, line 164
-
<static> _controlsHtml() → {String}
-
Build the HTML elements used for the controls
- Source:
- l2l.js, line 276
Returns:
the html string- Type
- String
-
<private, static> _create()
-
Initialize the widget
- Source:
- l2l.js, line 49
-
<private, static> _getSortAlg() → {Function}
-
Get the sort algorithm
- Source:
- l2l.js, line 229
Returns:
the algo- Type
- Function
-
<static> _iconHtml() → {String}
-
Build the HTML element for an icon regarding the options
- Source:
- l2l.js, line 292
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:
- l2l.js, line 144
-
<private, static> _r2l(event)
-
Action to move items from right to left
Parameters:
Name Type Description event
Object the source event - Source:
- l2l.js, line 154
-
<private, static> _sort(list)
-
Sort the items of a list
Parameters:
Name Type Description list
Object the list element to sort - Source:
- l2l.js, line 238
-
<static> _updateSize()
-
Update the lists size according to the options
- Source:
- l2l.js, line 245
-
<private, static> getItems() → {Items}
-
Get the items on the lists
- Source:
- l2l.js, line 198
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:
- l2l.js, line 218
Returns:
0 for equals, positive for greater than and negative for lesser than- Type
- Number