PDA

View Full Version : Create a legend



pbt
22 Dec 2010, 1:24 AM
Hello,

I'd like to create a legend similar to this example : http://www.sencha.com/gxtdocs/
How can I do it?

Thank you very much.

pbt

ituren
22 Dec 2010, 1:47 AM
I checked the resource code of that page.
And i found this:


<div class="res-block">
<div class="res-block-inner">
<h3>Icon Legend</h3>
<ul style="list-style: none outside none; margin-left: 0pt;" id="legend">
<li><img class="item-icon icon-pkg" src="resources/images/s.gif">Package</li>
<li><img class="item-icon icon-cls" src="resources/images/s.gif">Class</li>
<li><img class="item-icon icon-exception" src="resources/images/s.gif">Exception Class</li>
<li><img class="item-icon icon-error" src="resources/images/s.gif">Error Class</li>
<li><img class="item-icon icon-interface" src="resources/images/s.gif">Interface</li>
<li><img class="item-icon icon-enum" src="resources/images/s.gif">Enumeration</li>
<li><img class="item-icon icon-field" src="resources/images/s.gif">Fields</li>
<li><img class="item-icon icon-method" src="resources/images/s.gif">Method</li>
<li><img class="item-icon icon-event" src="resources/images/s.gif">Event</li>
</ul>
</div>
</div>

pbt
22 Dec 2010, 2:03 AM
Ok thanks. But is it possible to do it with GXT Components?

sven
22 Dec 2010, 3:38 AM
You can create a custom component that generates this markup.