mozilla

Revision 453823 of tabs

  • Revision slug: XUL/tabs
  • Revision title: tabs
  • Revision id: 453823
  • Created:
  • Creator: skomorokh
  • Is current revision? No
  • Comment

Revision Content

{{ XULRefElem() }}

A row of tabs. A tabs element should be placed inside a {{ XULElem("tabbox") }} and should contain {{ XULElem("tab") }} elements.

NB: You can add other elements to  {{ XULElem("tabs") }} as per usual, but they will receive an index. Activating them will not change the {{ PrefAnch("p-", "selectedIndex") }}.

More information is available in the XUL tutorial.

Attributes
{{ PrefAnch("a-", "closebutton") }}, {{ PrefAnch("a-", "disableclose") }}, {{ PrefAnch("a-", "disabled") }}, {{ PrefAnch("a-", "onclosetab") }}, {{ PrefAnch("a-", "onnewtab") }}, {{ PrefAnch("a-", "tabs.onselect", "onselect") }}, {{ PrefAnch("a-", "setfocus") }}, {{ PrefAnch("a-", "selectedIndex") }}, {{ PrefAnch("a-", "tabbox") }}, {{ PrefAnch("a-", "tabindex") }}, {{ PrefAnch("a-", "tooltiptextnew") }}, {{ PrefAnch("a-", "value") }},
Properties
{{ PrefAnch("a-", "accessibleType") }}, {{ PrefAnch("p-", "disabled") }}, {{ PrefAnch("a-", "itemCount") }}, {{ PrefAnch("p-", "selectedIndex") }}, {{ PrefAnch("p-", "selectedItem") }}, {{ PrefAnch("p-", "tabIndex") }}, {{ PrefAnch("p-", "value") }},
Methods
{{ PrefAnch("m-", "advanceSelectedTab") }}, {{ PrefAnch("m-", "appendItem") }}, {{ PrefAnch("m-", "getIndexOfItem") }}, {{ PrefAnch("m-", "getItemAtIndex") }}, {{ PrefAnch("m-", "insertItemAt") }}, {{ PrefAnch("m-", "removeItemAt") }}

Examples

(example needed)

Attributes

{{ XULAttrInherited() }} {{ XULAttrInc("closebutton") }} {{ XULAttrInc("disableclose") }} {{ XULAttrInc("disabled") }} {{ XULAttrInc("onclosetab") }} {{ XULAttrInc("onnewtab") }} {{ XULAttrInc("tabs.onselect") }}{{ XULAttrInc("selectedIndex") }} {{ XULAttrInc("setfocus") }} {{ XULAttrInc("tabindex") }} {{ XULAttrInc("tooltiptextnew") }}

Properties

{{ XULPropInherited() }} {{ XULPropInc("accessibleType") }} {{ XULPropInc("disabled") }} {{ XULPropInc("itemCount") }} {{ XULPropInc("selectedIndex") }} {{ XULPropInc("selectedItem") }} {{ XULPropInc("tabbox") }} {{ XULPropInc("tabIndex") }} {{ XULPropInc("value") }}

Methods

{{ XULMethInherited() }} {{ XULMethInc("advanceSelectedTab") }} {{ XULMethInc("appendItem") }} {{ XULMethInc("getIndexOfItem") }} {{ XULMethInc("getItemAtIndex") }} {{ XULMethInc("insertItemAt") }} {{ XULMethInc("removeItemAt") }}

Elements
{{ XULElem("tabbox") }}, {{ XULElem("tab") }}, {{ XULElem("tabpanels") }}, {{ XULElem("tabpanel") }}.
Interfaces
{{ interface("nsIAccessibleProvider") }}, {{ interface("nsIDOMXULSelectControlElement") }}

{{ languages( { "de": "de/XUL/tabs", "ja": "ja/XUL/tabs", "pl": "pl/XUL/tabs" } ) }}

Revision Source

<div class="noinclude">
  {{ XULRefElem() }}</div>
<p>A row of tabs. A <code>tabs</code> element should be placed inside a {{ XULElem("tabbox") }} and should contain {{ XULElem("tab") }} elements.</p>
<p>NB: You can add other elements to&nbsp; {{ XULElem("tabs") }} as per usual, but they will receive an index. Activating them will not change the {{ PrefAnch("p-", "selectedIndex") }}.</p>
<p>More information is available in the <a href="/en/XUL_Tutorial/Tabboxes" title="en/XUL_Tutorial/Tabboxes">XUL tutorial</a>.</p>
<dl>
  <dt>
    Attributes</dt>
  <dd>
    {{ PrefAnch("a-", "closebutton") }}, {{ PrefAnch("a-", "disableclose") }}, {{ PrefAnch("a-", "disabled") }}, {{ PrefAnch("a-", "onclosetab") }}, {{ PrefAnch("a-", "onnewtab") }}, {{ PrefAnch("a-", "tabs.onselect", "onselect") }}, {{ PrefAnch("a-", "setfocus") }}, {{ PrefAnch("a-", "selectedIndex") }}, {{ PrefAnch("a-", "tabbox") }}, {{ PrefAnch("a-", "tabindex") }}, {{ PrefAnch("a-", "tooltiptextnew") }}, {{ PrefAnch("a-", "value") }},</dd>
</dl>
<dl>
  <dt>
    Properties</dt>
  <dd>
    {{ PrefAnch("a-", "accessibleType") }}, {{ PrefAnch("p-", "disabled") }}, {{ PrefAnch("a-", "itemCount") }}, {{ PrefAnch("p-", "selectedIndex") }}, {{ PrefAnch("p-", "selectedItem") }}, {{ PrefAnch("p-", "tabIndex") }}, {{ PrefAnch("p-", "value") }},</dd>
</dl>
<dl>
  <dt>
    Methods</dt>
  <dd>
    {{ PrefAnch("m-", "advanceSelectedTab") }}, {{ PrefAnch("m-", "appendItem") }}, {{ PrefAnch("m-", "getIndexOfItem") }}, {{ PrefAnch("m-", "getItemAtIndex") }}, {{ PrefAnch("m-", "insertItemAt") }}, {{ PrefAnch("m-", "removeItemAt") }}</dd>
</dl>
<h3 id="Examples" name="Examples">Examples</h3>
<p>(example needed)</p>
<h3 id="Attributes" name="Attributes">Attributes</h3>
<p>{{ XULAttrInherited() }} {{ XULAttrInc("closebutton") }} {{ XULAttrInc("disableclose") }} {{ XULAttrInc("disabled") }} {{ XULAttrInc("onclosetab") }} {{ XULAttrInc("onnewtab") }} {{ XULAttrInc("tabs.onselect") }}{{ XULAttrInc("selectedIndex") }} {{ XULAttrInc("setfocus") }} {{ XULAttrInc("tabindex") }} {{ XULAttrInc("tooltiptextnew") }}</p>
<h3 id="Properties" name="Properties">Properties</h3>
<p>{{ XULPropInherited() }} {{ XULPropInc("accessibleType") }} {{ XULPropInc("disabled") }} {{ XULPropInc("itemCount") }} {{ XULPropInc("selectedIndex") }} {{ XULPropInc("selectedItem") }} {{ XULPropInc("tabbox") }} {{ XULPropInc("tabIndex") }} {{ XULPropInc("value") }}</p>
<h3 id="Methods" name="Methods">Methods</h3>
<p>{{ XULMethInherited() }} {{ XULMethInc("advanceSelectedTab") }} {{ XULMethInc("appendItem") }} {{ XULMethInc("getIndexOfItem") }} {{ XULMethInc("getItemAtIndex") }} {{ XULMethInc("insertItemAt") }} {{ XULMethInc("removeItemAt") }}</p>
<h3 id="Related" name="Related">Related</h3>
<dl>
  <dt>
    Elements</dt>
  <dd>
    {{ XULElem("tabbox") }}, {{ XULElem("tab") }}, {{ XULElem("tabpanels") }}, {{ XULElem("tabpanel") }}.</dd>
  <dt>
    Interfaces</dt>
  <dd>
    {{ interface("nsIAccessibleProvider") }}, {{ interface("nsIDOMXULSelectControlElement") }}</dd>
</dl>
<p>{{ languages( { "de": "de/XUL/tabs", "ja": "ja/XUL/tabs", "pl": "pl/XUL/tabs" } ) }}</p>
Revert to this revision