Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 55 additions & 1 deletion src/main/scala/org/scalajs/dom/raw/Html.scala
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,14 @@ abstract class HTMLSelectElement extends HTMLElement {
var multiple: Boolean = js.native
var `type`: String = js.native

/**
* Reflects the disabled HTML attribute, which indicates whether the control is
* disabled. If it is disabled, it does not accept clicks.
*
* MDN
*/
var disabled: Boolean = js.native

/**
* Removes the element at the specified index from the options collection for this
* select element.
Expand Down Expand Up @@ -1225,6 +1233,15 @@ abstract class HTMLOptionElement extends HTMLElement {
*/
var selected: Boolean = js.native

/**
* Reflects the value of the disabled HTML attribute, which indicates that the option
* is unavailable to be selected. An option can also be disabled if it is a child of
* an <optgroup> element that is disabled.
*
* MDN
*/
var disabled: Boolean = js.native

def create(): HTMLOptionElement = js.native
}

Expand Down Expand Up @@ -1550,6 +1567,13 @@ abstract class HTMLButtonElement extends HTMLElement {
var name: String = js.native
var `type`: String = js.native

/**
* The control is disabled, meaning that it does not accept any clicks.
*
* MDN
*/
var disabled: Boolean = js.native

/**
* 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
Expand Down Expand Up @@ -2326,6 +2350,14 @@ abstract class HTMLInputElement extends HTMLElement {
*/
var checked: Boolean = js.native

/**
* Reflects the disabled HTML attribute, indicating that the control is not available
* for interaction. The input values will not be submitted with the form.
*
* MDN
*/
var disabled: Boolean = js.native

/**
* Reflects the maxlength HTML attribute, containing the maximum length of text (in
* Unicode code points) that the value can be changed to. The constraint is evaluated
Expand Down Expand Up @@ -3064,6 +3096,14 @@ abstract class HTMLTextAreaElement extends HTMLElement {
*/
var name: String = js.native

/**
* Reflects the disabled HTML attribute, indicating that the control is not available
* for interaction.
*
* MDN
*/
var disabled: Boolean = js.native

/**
* The index of the beginning of selected text. If no text is selected, contains the
* index of the character that follows the input cursor. On being set, the control
Expand Down Expand Up @@ -3627,6 +3667,14 @@ abstract class HTMLFieldSetElement extends HTMLElement {
*/
def form: HTMLFormElement = js.native

/**
* Reflects the disabled HTML attribute, indicating whether the user can interact with
* the control.
*
* MDN
*/
var disabled: Boolean = js.native

/**
* A localized message that describes the validation constraints that the element
* does not satisfy (if any). This is the empty string if the element is not a candidate
Expand Down Expand Up @@ -3870,7 +3918,6 @@ abstract class HTMLElement extends Element {
var onloadeddata: js.Function1[Event, _] = js.native
var onbeforedeactivate: js.Function1[UIEvent, _] = js.native

var disabled: js.UndefOr[Boolean] = js.native
var onactivate: js.Function1[UIEvent, _] = js.native
var onselectstart: js.Function1[Event, _] = js.native
var ontimeupdate: js.Function1[Event, _] = js.native
Expand Down Expand Up @@ -4166,6 +4213,13 @@ abstract class HTMLOptGroupElement extends HTMLElement {
* MDN
*/
var label: String = js.native

/**
* If true, the whole list of children <option> is disabled
*
* MDN
*/
var disabled: Boolean = js.native
}

/**
Expand Down