|
@@ -24,22 +24,22 @@
|
|
|
package js.html;
|
|
|
|
|
|
/** <code>DOM select</code> elements share all of the properties and methods of other HTML elements described in the <code><a rel="custom" href="https://developer.mozilla.org/en/DOM/element">element</a></code>
|
|
|
- section. They also have the specialized interface <a class="external" title="http://dev.w3.org/html5/spec/the-button-element.html#htmlselectelement" rel="external" href="http://dev.w3.org/html5/spec/the-button-element.html#htmlselectelement" target="_blank">HTMLSelectElement</a> (or
|
|
|
+ section. They also have the specialized interface <a class="external" title="http://dev.w3.org/html5/spec/the-button-element.html#htmlselectelement" rel="external" href="http://dev.w3.org/html5/spec/the-button-element.html#htmlselectelement" target="_blank">HTMLSelectElement</a> (or
|
|
|
<span><a rel="custom" href="https://developer.mozilla.org/en/HTML">HTML 4</a></span> <a class="external" title="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-94282980" rel="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-94282980" target="_blank">HTMLSelectElement</a>).<br><br>
|
|
|
Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/HTMLSelectElement">MDN</a>. */
|
|
|
@:native("HTMLSelectElement")
|
|
|
-extern class SelectElement extends Element, implements ArrayAccess<Node>
|
|
|
+extern class SelectElement extends Element implements ArrayAccess<Node>
|
|
|
{
|
|
|
- /** Reflects the
|
|
|
+ /** Reflects the
|
|
|
|
|
|
<code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/select#attr-autofocus">autofocus</a></code>
|
|
|
- HTML attribute, which indicates whether the control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified.
|
|
|
-<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
+ HTML attribute, which indicates whether the control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified.
|
|
|
+<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
<span title="(Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
|
|
|
">Requires Gecko 2.0</span> */
|
|
|
var autofocus : Bool;
|
|
|
|
|
|
- /** Reflects the
|
|
|
+ /** Reflects the
|
|
|
|
|
|
<code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/select#attr-disabled">disabled</a></code>
|
|
|
HTML attribute, which indicates whether the control is disabled. If it is disabled, it does not accept clicks. */
|
|
@@ -57,13 +57,13 @@ extern class SelectElement extends Element, implements ArrayAccess<Node>
|
|
|
elements in this <code>select</code> element. Setter throws DOMException. */
|
|
|
var length : Int;
|
|
|
|
|
|
- /** Reflects the
|
|
|
+ /** Reflects the
|
|
|
|
|
|
<code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/select#attr-multiple">multiple</a></code>
|
|
|
HTML attribute, whichindicates whether multiple items can be selected. */
|
|
|
var multiple : Bool;
|
|
|
|
|
|
- /** Reflects the
|
|
|
+ /** Reflects the
|
|
|
|
|
|
<code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/select#attr-name">name</a></code>
|
|
|
HTML attribute, containing the name of this control used by servers and DOM search functions. */
|
|
@@ -73,11 +73,11 @@ extern class SelectElement extends Element, implements ArrayAccess<Node>
|
|
|
elements contained by this element. <strong>Read only.</strong> */
|
|
|
var options (default,null) : HTMLOptionsCollection;
|
|
|
|
|
|
- /** Reflects the
|
|
|
+ /** Reflects the
|
|
|
|
|
|
<code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/select#attr-required">required</a></code>
|
|
|
- HTML attribute, which indicates whether the user is required to select a value before submitting the form.
|
|
|
-<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
+ HTML attribute, which indicates whether the user is required to select a value before submitting the form.
|
|
|
+<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
<span title="(Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
|
|
|
">Requires Gecko 2.0</span> */
|
|
|
var required : Bool;
|
|
@@ -86,28 +86,28 @@ extern class SelectElement extends Element, implements ArrayAccess<Node>
|
|
|
element. */
|
|
|
var selectedIndex : Int;
|
|
|
|
|
|
- /** The set of options that are selected.
|
|
|
+ /** The set of options that are selected.
|
|
|
<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> */
|
|
|
var selectedOptions (default,null) : HTMLCollection;
|
|
|
|
|
|
- /** Reflects the
|
|
|
+ /** Reflects the
|
|
|
|
|
|
<code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/select#attr-size">size</a></code>
|
|
|
- HTML attribute, which contains the number of visible items in the control. The default is 1,
|
|
|
+ HTML attribute, which contains the number of visible items in the control. The default is 1,
|
|
|
<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> unless <strong>multiple</strong> is true, in which case it is 4. */
|
|
|
var size : Int;
|
|
|
|
|
|
/** The form control's type. When <strong>multiple</strong> is true, it returns <code>select-multiple</code>; otherwise, it returns <code>select-one</code>.<strong>Read only.</strong> */
|
|
|
var type (default,null) : String;
|
|
|
|
|
|
- /** A localized message that describes the validation constraints that the control does not satisfy (if any). This attribute is the empty string if the control is not a candidate for constraint validation (<strong>willValidate</strong> is false), or it satisfies its constraints.<strong>Read only.</strong>
|
|
|
-<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
+ /** A localized message that describes the validation constraints that the control does not satisfy (if any). This attribute is the empty string if the control is not a candidate for constraint validation (<strong>willValidate</strong> is false), or it satisfies its constraints.<strong>Read only.</strong>
|
|
|
+<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
<span title="(Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
|
|
|
">Requires Gecko 2.0</span> */
|
|
|
var validationMessage (default,null) : String;
|
|
|
|
|
|
- /** The validity states that this control is in. <strong>Read only.</strong>
|
|
|
-<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
+ /** The validity states that this control is in. <strong>Read only.</strong>
|
|
|
+<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
<span title="(Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
|
|
|
">Requires Gecko 2.0</span> */
|
|
|
var validity (default,null) : ValidityState;
|
|
@@ -115,8 +115,8 @@ extern class SelectElement extends Element, implements ArrayAccess<Node>
|
|
|
/** The value of this form control, that is, of the first selected option. */
|
|
|
var value : String;
|
|
|
|
|
|
- /** Indicates whether the button is a candidate for constraint validation. It is false if any conditions bar it from constraint validation. <strong>Read only.</strong>
|
|
|
-<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
+ /** Indicates whether the button is a candidate for constraint validation. It is false if any conditions bar it from constraint validation. <strong>Read only.</strong>
|
|
|
+<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span>
|
|
|
<span title="(Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
|
|
|
">Requires Gecko 2.0</span> */
|
|
|
var willValidate (default,null) : Bool;
|