A useful addition would be to be able to retrieve the menu ‘path’ when an item is clicked. This would most often be used when doing your own processing with the ‘itemclick’ event. Using the menu structure shown below, and clicking on File->Export->Excel, calling the path() method would return an array of [‘File’,’Export’,’Excel’].
$('#jqxMenu').on ('itemclick', function (event) {
var path = $('#jxqMenu').jqxMenu ('path', event.args.id);
console.log path.join ('->');
/* File->Export->Excel */
});
File
Import
CSV
TSV
Excel
Export
CSV
TSV
Excel
Edit
Find...
Find & Replace...
Help
Help with this page
Help index
About