returns an item's ID by HTML event (checks if any item is in the area of HTML event)
ev | Event Object | native HTML event |
some.onclick=function(e){
var id = myDataView.locate(e||event);
if (id)
do_something();
}
the method returns null if the relative item isn't found
Back to top