search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to find a resource by mouse position

Asked by Chilky Boubar
6 years ago.

Hi;
How to find a resource by mouse position on rowColumnHeader using onmouseup event (not usingDaypilot.contextMenuResource) !

I used jquery like this

$("body").on("mouseup",".scheduler_hotelca_rowheader_inner",function(){
$(".scheduler_hotelca_rowheader_inner").not(this).removeClass("selected");
if(event.button===0){
$(this).toggleClass("selected");
return;
};
if(event.button===2){
if($(this).hasClass("selected")){
menuCMR.show(); // Menu for individual selected room
}else{
menuAPP.show(); // Menu for all rooms
}
}
});

but in the menu item handler for individal menu (menuCMR) i would like to get the resource id !

Thanks

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.