mozilla

Revision 174638 of listcols

  • Revision slug: XUL/listcols
  • Revision title: listcols
  • Revision id: 174638
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[ja:XUL:listcols]] <<langbot>>

Revision Content

{{ XULRefElem() }}

A container for the columns of a {{ XULElem("listbox") }}, each of which are created with the {{ 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

{{ XULAttrInheritedWide() }}

Properties

{{ XULPropInheritedWide() }}

Methods

{{ XULMethInheritedWide() }}

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

Revision Source

<div class="noinclude">{{ XULRefElem() }}</div> <p>A container for the columns of a {{ XULElem("listbox") }}, each of which are created with the {{ 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 id="Example" 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 id="Attributes" name="Attributes"> Attributes </h3>
<p>{{ XULAttrInheritedWide() }}
</p>
<h3 id="Properties" name="Properties"> Properties </h3>
<p>{{ XULPropInheritedWide() }}
</p>
<h3 id="Methods" name="Methods"> Methods </h3>
<p>{{ XULMethInheritedWide() }}
</p>
<h3 id="Related" name="Related"> Related </h3>
<dl><dt> Elements
</dt><dd> {{ XULElem("listbox") }}, {{ XULElem("listcell") }}, {{ XULElem("listcol") }}, {{ XULElem("listhead") }}, {{ XULElem("listheader") }}, {{ XULElem("listitem") }}
</dd></dl>
<div class="noinclude">
</div>
{{ languages( { "ja": "ja/XUL/listcols", "pl": "pl/XUL/listcols" } ) }}
Revert to this revision