Revision 174637 of listcols

  • Revision slug: XUL/listcols
  • Revision title: listcols
  • Revision id: 174637
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment /* Example */ Example doesn't work to demonstrate columns well if no flex attrs

Revision Content

{{template.XULRefElem()}}

A container for the columns of a {{template.XULElem("listbox")}}, each of which are created with the {{template.XULElem("listcol")}} element. There should be only one listcols element in a list box. If there is no listcols element, the list box has a single column.

Example

<!-- Creates a two column listbox -->
<listbox>
  <listcols>
    <listcol flex="1"/>
    <listcol flex="1"/>
  </listcols>
  <listitem>
    <listcell label="Buck"/>
    <listcell label="Rogers"/>
  </listitem>
  <listitem>
    <listcell label="John"/>
    <listcell label="Painter"/>
  </listitem>
</listbox>

Attributes

{{template.XULAttrInheritedWide()}}

Properties

{{template.XULPropInheritedWide()}}

Methods

{{template.XULMethInheritedWide()}}

Related

Elements
{{template.XULElem("listbox")}}, {{template.XULElem("listcell")}}, {{template.XULElem("listcol")}}, {{template.XULElem("listhead")}}, {{template.XULElem("listheader")}}, {{template.XULElem("listitem")}}
{{ wiki.languages( { "pl": "pl/XUL/listcols" } ) }}

Revision Source

<div class="noinclude">{{template.XULRefElem()}}</div> 
<p>A container for the columns of a {{template.XULElem("listbox")}}, each of which are created with the {{template.XULElem("listcol")}} element. There should be only one <code>listcols</code> element in a list box. If there is no <code>listcols</code> element, the list box has a single column.
</p>
<h3 name="Example"> Example </h3>
<pre>&lt;!-- Creates a two column listbox --&gt;
&lt;listbox&gt;
  &lt;listcols&gt;
    &lt;listcol flex="1"/&gt;
    &lt;listcol flex="1"/&gt;
  &lt;/listcols&gt;
  &lt;listitem&gt;
    &lt;listcell label="Buck"/&gt;
    &lt;listcell label="Rogers"/&gt;
  &lt;/listitem&gt;
  &lt;listitem&gt;
    &lt;listcell label="John"/&gt;
    &lt;listcell label="Painter"/&gt;
  &lt;/listitem&gt;
&lt;/listbox&gt;
</pre>
<h3 name="Attributes"> Attributes </h3>
<p>{{template.XULAttrInheritedWide()}}
</p>
<h3 name="Properties"> Properties  </h3>
<p>{{template.XULPropInheritedWide()}}
</p>
<h3 name="Methods"> Methods </h3>
<p>{{template.XULMethInheritedWide()}}
</p>
<h3 name="Related"> Related </h3>
<dl><dt> Elements
</dt><dd> {{template.XULElem("listbox")}}, {{template.XULElem("listcell")}}, {{template.XULElem("listcol")}}, {{template.XULElem("listhead")}}, {{template.XULElem("listheader")}}, {{template.XULElem("listitem")}}
</dd></dl>
{{ wiki.languages( { "pl": "pl/XUL/listcols" } ) }}
Revert to this revision