Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 170659 of textbox.type

  • Slug da revisão: XUL/Attribute/textbox.type
  • Título da revisão: textbox.type
  • ID da revisão: 170659
  • Criado:
  • Autor: Verruckt
  • É a revisão atual? Não
  • Comentário

Conteúdo da revisão

{{template.XULRefAttr()}}

type
Type: um dos valores abaixo
You can set the type attribute to one of the values below for a more specialized type of textbox. Don't set the type if you wish to use a regular textbox.
  • autocomplete: A textbox that supports autocomplete. For more information about autocomplete textboxes, see the autocomplete documentation (Mozilla) (Firefox)
  • number: A textbox that only allows the user to enter numbers. In addition, arrow buttons appear next to the textbox to let the user step through values. There are several attributes that allow the number textbox to be configured, including {{template.XULAttr("min")}}, {{template.XULAttr("max")}}, {{template.XULAttr("increment")}}, {{template.XULAttr("wraparound")}}, and {{template.XULAttr("hidespinbuttons")}}. {{template.Fx_minversion_inline(3)}}
  • password: A textbox that hides what is typed, used for entering passwords.
  • timed: This textbox will fire a command event after the user types characters and a certain time has passed. The delay is set with the {{template.XULAttr("timeout")}} attribute. You might use this type, for instance, to update information elsewhere in the window as the user types, without the need for continuous updates since the timer will not fire if the user types more keys in the meantime. The command event will also fire if the user presses the Enter key.

Veja também

  • {{template.XULAttr("type")}}

Categorias

Interwiki Language Links

{{ wiki.languages( { "en": "en/XUL/Attribute/textbox.type", "pl": "pl/XUL/Atrybut/textbox.type" } ) }}

Fonte da revisão

<p>{{template.XULRefAttr()}}
</p>
<dl><dt> <a href="pt/XUL/Attribute/textbox.type">type</a>
</dt><dd> Type: <i>um dos valores abaixo</i>
</dd><dd> You can set the type attribute to one of the values below for a more specialized type of textbox. Don't set the type if you wish to use a regular textbox.
</dd></dl>
<ul><li> <code>autocomplete</code>: A textbox that supports autocomplete. For more information about autocomplete textboxes, see the autocomplete documentation (<a href="pt/XUL/textbox_(Mozilla_autocomplete)">Mozilla</a>) (<a href="pt/XUL/textbox_(Firefox_autocomplete)">Firefox</a>)
</li><li> <code>number</code>: A textbox that only allows the user to enter numbers.  In addition, arrow buttons appear next to the textbox to let the user step through values.  There are several attributes that allow the number textbox to be configured, including {{template.XULAttr("min")}}, {{template.XULAttr("max")}}, {{template.XULAttr("increment")}}, {{template.XULAttr("wraparound")}}, and {{template.XULAttr("hidespinbuttons")}}. {{template.Fx_minversion_inline(3)}}
</li><li> <code>password</code>: A textbox that hides what is typed, used for entering passwords.
</li><li> <code>timed</code>: This textbox will fire a command event after the user types characters and a certain time has passed. The delay is set with the {{template.XULAttr("timeout")}} attribute. You might use this type, for instance, to update information elsewhere in the window as the user types, without the need for continuous updates since the timer will not fire if the user types more keys in the meantime. The command event will also fire if the user presses the Enter key.
</li></ul>
<h3 name="Veja_tamb.C3.A9m"> Veja também </h3>
<ul><li> {{template.XULAttr("type")}}
</li></ul>
<p><span class="comment">Categorias</span>
</p><p><span class="comment">Interwiki Language Links</span>
</p>{{ wiki.languages( { "en": "en/XUL/Attribute/textbox.type", "pl": "pl/XUL/Atrybut/textbox.type" } ) }}
Reverter para esta revisão