Does anyone know how to add an icon to a TabContainer widget? I chose the declerative example:
<div dojoType="dijit.layout.TabContainer" style="width: 100%; height: 100%;"> <div dojoType="dijit.layout.ContentPane" title="My first tab" selected="true"> Lorem ipsum and all around... </div> <div dojoType="dijit.layout.ContentPane" title="My second tab"> Lorem ipsum and all around - second... </div> <div dojoType="dijit.layout.ContentPane" title="My last tab" closable="true"> Lorem ipsum and all around - last... </div> </div>
But there is only a title attribute for the tab title. How to add a tag?
In this post, I found a solution to add a tag to the header:
I actually looked more into this and I found that this code works well: <div id="mainTabContainer" dojoType="TabContainer" style="width: 100%; height: 100%" selectedTab="tab1" > <a dojoType="LinkPane" href="/path/to/pane/content" refreshOnShow="true" style="display: none"><img src="path/to/your/image"/></a>
But the href LinkPane attribute confused me. I do not need to reference another html document.
source share