Using of
header in
listbox XUL control is quite common task. But there is no clear information about ability to use
header in
richlistbox control. I've found quite obvious but undocumented solution for this problem. The next short example will show how to add
header to
richlistbox control.
<richlistbox rows="10" flex="1">
<listhead>
<listheader label="My header" flex="1"/>
</listhead>
<richlistitem>
<label value="Item1"/>
</richlistitem>
<richlistitem>
<label value="Item2"/>
</richlistitem>
</richlistbox>
2 comments:
thanks for the tip. do you also happen to know how to make the header stay there (in case you have scrollbars)?
Sure. This is a problem. There is no simple way to solve it. When I'll have some free time I'll look for some solution.
Post a Comment