jQuery Menu

Set the source property of the jqxMenu. Author: http://jqwidgets.com

HTML

<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id="jqxMenu"></div>

CSS

#mail {
  background-color: mediumpurple;
  color: mistyrose;
}

.inbox {
  font-style: italic;
  color: purple;
}

JavaScript

var source = [{
       label: "Mail",
       id: "mail",
       items: [{
           label: "Calendar"
       }, {
           label: "Contacts"
       }]
   }, {
       label: "<span class='inbox'>Inbox</span>",
       items: [{
           // label: "Admin",
           html: "<div><img src='https://www.jqwidgets.com/angular/images/mailIcon.png' style='margin-top: 0px;'> Admin</div>"
       }, {
           label: "Corporate"
       }, {
           label: "Finance"
       }, {
           label: "Other"
       }]
   }, {
       label: "Deleted Items"
   }, {
       label: "Notes"
   }, {
       label: "Settings"
   }, {
       label: "Favorites"
   }];

   // create jqxMenu
   $("#jqxMenu").jqxMenu({
       source: source,
       width: "180px",
       theme: "energyblue",
       height: "170px",
       mode: "vertical"
   });