OnCreate(event)
{
$(".e-menu ul").append("<li class='e-list'><a class='e-menulink'><img src='src/content/images/dark-arrow2.png'>Text</a></li>")
$(".e-menu ul:first").prepend("<div class='e-image'><img src='src/content/images/chart/grain.png'></div>")
$(".e-menu ul:first").addClass("e-first");
}
<style>
.e-image
{
float:left;
margin: 10px;
}
.e-first
{
width: 300px;
}
</style> |
Hello,
thank you, it was very helpful. But I have one more question - is there a possibility to add picture not on top all lines, but have one big picture in left menu side and all nodes in right menu side?
Like this:
BIG PICTURE | Node1
SAME BIG PIC | Node2
SAME BIG PIC | Node3
SomeTextNotPictureAnyMore
Something like this instead of this
Hello again,
one more question - how to disable clicking on specific line (added like in example in OnCreate method)? I tried to do it with disableItemByID(itemId) method, but for me it is not working.
OnCreate(event)
{
$(".e-menu ul").append("<li class='e-list e-footer' id='footer'><a class='e-menulink'><img src='src/content/images/dark- arrow2.png'>Text</a></li>")
$(".e-menu ul:first").prepend("<div class='e-image'><img src='src/content/images/chart/grain.png'></div>")
$(".e-menu ul:first").addClass("e-first");
var menuObj = $("#menu").data("ejMenu");
menuObj.disableItemByID("footer");
} |