:: Home >>

item mouse events

List-based controls trigger mouse events for each of the list items

Syntax

obj.onItemMouseOver = function(event, index){...};
obj.onItemMouseOut = function(event, index){...};
obj.onItemMouseDown = function(event, index){...};
obj.onItemMouseUp = function(event, index){...};
obj.onItemClicked = function(event, index){...};
obj.onItemDoubleClicked = function(event, index){...};

Parameters

event (object) - DOM event
index (string) - item index

Example

obj.onItemClicked = function(event, index){
    alert(this.getItemText(index));
}

Remarks

If any of the Ctrl-, Alt- or Shift- button is pressed then onItemClicked and onItemDoubleClicked events will not fire. Instead the event name will include the combination of the control characters - for example, onItemShiftDoubleClicked or onItemCtrlClicked

Comments

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5