I was worked on to make the right click as my customize menu to display using the mouse by using the below code:
click: function (event) {
var eventResult = this.get('tableView').clickRow(event, this.get('object'));
if (eventResult !== false) {
this.get('element').focus();
$('.content-row').bind('contextmenu', function(e) {
e.preventDefault();
var parentId = $(this).closest('tr').prop('id');
$('#'+parentId).find( ".managed-object-action-menu" ).click();
});
}
return eventResult;
},
But What happen means the options are coming in the left side for right click options. I need the options come by on right side for right click on mouse. I'm new to the ember. Your help will be appreciate. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire