Can we add image to right side corner of the layout where we set the text like below.
setText() will add a text to the cell at left corner. I want to add a image to the right corner. Is it possible?
dhxLayout = new dhtmlXLayoutObject(document.body, “1C”);
dhxLayout.cells(“a”).setText(“Home”);
Great! Can I add a text to the sme toolbar but it should be aligned to the left side. Can I acheive that with toolbar itself? Left side should be text and right side should be image.
Yes, you can hide it.
This picture is an item of toolbar. It has the text methods to manipulate its items:
toolbar.addButton("picture", 1, "", "settings.gif", "settings.gif"); //adding of the button 'picture'
toolbar.hideItem('picture'); //hiding this item
toolbar.showItem('picture'); //showing this item