Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bogdan Tindeche on Jun 27, 2007 18:03
open dhtmlx forum
I would like to have two different backrounds for a context menu. One background color for the left part (where the pictures are dispayed) and another backgroud color for the right part (where the text is displayed). I would like to do this programaticaly through javascript because this way I build my context menu.

Answer posted on Jun 28, 2007 16:20
Such feature is not available through API, but you can

a) Change appropriate settings for all menu items through dhtmlxMenu.css file

or

b) You can related HTML elements directly through DOM and change appropriate settings
            aMenuBar.getItem('main_file').CSSTag.style.backgroundColor='red';
            aMenuBar.getItem('main_file').imageTag.parentNode.style.backgroundColor='green';
Answer posted by Stanislav (Support) on Dec 07, 2014 07:54

The information connected with demo apps and ajax dhtml menu also can help you, so please check it too.