{{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" } ) }}