<style>
.newclass{
width:400px;
}
li{
list-style-position:inside;
border-bottom: 0.5px solid black;
width:400px
}
</style>
// add the newly created class to the context menu
document.getElementById(diagram.id+‘_contextMenu').classList.add('newclass')
|
// to customize the context menu on render use the following class
.e-contextmenu-wrapper ul
{
background-color:gray;
width:200px
}
// to customize the context menu on select a particular list use the following class
.e-contextmenu-wrapper ul .e-menu-item.e-selected
{
background-color:green;
}
// to customize the context menu on focus a list use the following class
.e-contextmenu-wrapper ul .e-menu-item.e-focused
{
background-color:red;
}
|