org.scalajs.dom.raw

HTMLOptionElement

Related Doc: package raw

class HTMLOptionElement extends HTMLElement

The HTMLOptionElement interface represents

Annotations
@RawJSType()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HTMLOptionElement
  2. HTMLElement
  3. Element
  4. ParentNode
  5. NodeSelector
  6. Node
  7. EventTarget
  8. Object
  9. Any
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HTMLOptionElement()

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. var accessKey: String

    Definition Classes
    Element
  5. def addEventListener[T <: Event](type: String, listener: Function1[T, _], useCapture: Boolean = js.native): Unit

    The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on.

    The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events (such as XMLHttpRequest).

    MDN

    Definition Classes
    EventTarget
  6. def appendChild(newChild: Node): Node

    Adds a node to the end of the list of children of a specified parent node.

    Adds a node to the end of the list of children of a specified parent node. If the node already exists it is removed from current parent node, then added to new parent node.

    MDN

    Definition Classes
    Node
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def attributes: NamedNodeMap

    .attributes is a collection of all attribute nodes registered to the specified node.

    .attributes is a collection of all attribute nodes registered to the specified node. It is a NamedNodeMap,not an Array, so it has no Array methods and the Attr nodes' indexes may differ among browsers. To be more specific, attribute is a key value pair of strings that represents any information regarding that node; it cannot hold Object. Attribute can hold additional data/information that is required while processing custom JavaScript. There are many predefined attributes for different nodes used for binding events, validations, and specifying layout informations that are handled by browser (may vary from browser to browser).  

    MDN

    Definition Classes
    Node
  9. def blur(): Unit

    The blur method removes keyboard focus from the current element.

    The blur method removes keyboard focus from the current element.

    MDN

    Definition Classes
    HTMLElement
  10. def childElementCount: Int

    Returns an unsigned long giving the amount of children that the object has.

    Returns an unsigned long giving the amount of children that the object has.

    MDN

    Definition Classes
    ParentNode
  11. def childNodes: NodeList

    Returns a live NodeList containing all the children of this node.

    Returns a live NodeList containing all the children of this node. NodeList being live means that if the children of the Node change, the NodeList object is automatically updated.

    MDN

    Definition Classes
    Node
  12. def children: HTMLCollection

    Returns a live HTMLCollection containing all objects of type Element that are children of the object.

    Returns a live HTMLCollection containing all objects of type Element that are children of the object.

    MDN

    Definition Classes
    ParentNode
  13. var classList: DOMTokenList

    Supported by FF>3.6, any Opera, any Chrome, any IE, any Safari

    Supported by FF>3.6, any Opera, any Chrome, any IE, any Safari

    Definition Classes
    Element
  14. var className: String

    Definition Classes
    HTMLElement
  15. def click(): Unit

    The click method simulates a mouse click on an element.

    The click method simulates a mouse click on an element.

    MDN

    Definition Classes
    HTMLElement
  16. def clientHeight: Int

    Returns the inner height of an element in pixels, including padding but not the horizontal scrollbar height, border, or margin.

    Returns the inner height of an element in pixels, including padding but not the horizontal scrollbar height, border, or margin.

    clientHeight can be calculated as CSS height + CSS padding - height of horizontal scrollbar (if present).

    MDN

    Definition Classes
    Element
  17. def clientLeft: Int

    The width of the left border of an element in pixels.

    The width of the left border of an element in pixels. It includes the width of the vertical scrollbar if the text direction of the element is right–to–left and if there is an overflow causing a left vertical scrollbar to be rendered. clientLeft does not include the left margin or the left padding. clientLeft is read-only.

    MDN

    Definition Classes
    Element
  18. def clientTop: Int

    The width of the top border of an element in pixels.

    The width of the top border of an element in pixels. It does not include the top margin or padding. clientTop is read-only.

    MDN

    Definition Classes
    Element
  19. def clientWidth: Int

    clientWidth is the inner width of an element in pixels.

    clientWidth is the inner width of an element in pixels. It includes padding but not the vertical scrollbar (if present, if rendered), border or margin.

    MDN

    Definition Classes
    Element
  20. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def cloneNode(deep: Boolean = js.native): Node

    Clone a Node, and optionally, all of its contents.

    Clone a Node, and optionally, all of its contents. By default, it clones the content of the node.

    MDN

    Definition Classes
    Node
  22. def compareDocumentPosition(other: Node): Int

    Compares the position of the current node against another node in any other document.

    Compares the position of the current node against another node in any other document.

    MDN

    Definition Classes
    Node
  23. def contains(child: HTMLElement): Boolean

    Definition Classes
    HTMLElement
  24. var contentEditable: String

    contentEditable is used to indicate whether or not the element is editable.

    contentEditable is used to indicate whether or not the element is editable. This enumerated attribute can have the following values:

    MDN

    Definition Classes
    HTMLElement
  25. def create(): HTMLOptionElement

  26. var defaultSelected: Boolean

    Contains the initial value of the selected HTML attribute, indicating whether the option is selected by default or not.

    Contains the initial value of the selected HTML attribute, indicating whether the option is selected by default or not.

    MDN

  27. var dir: String

    The dir attribute gets or sets the text writing directionality of the content of the current element.

    The dir attribute gets or sets the text writing directionality of the content of the current element.

    MDN

    Definition Classes
    HTMLElement
  28. var disabled: Boolean

    Definition Classes
    HTMLElement
  29. def dispatchEvent(evt: Event): Boolean

    Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.

    Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) apply to events dispatched manually with dispatchEvent().

    MDN

    Definition Classes
    EventTarget
  30. var draggable: Boolean

    Definition Classes
    HTMLElement
  31. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  33. var filters: AnyRef

    Definition Classes
    HTMLElement
  34. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def firstChild: Node

    Returns the node's first child in the tree, or null if the node is childless.

    Returns the node's first child in the tree, or null if the node is childless. If the node is a Document, it returns the first node in the list of its direct children.

    MDN

    Definition Classes
    Node
  36. def firstElementChild: Element

    Returns the Element that is the first child of the object, or null if there is none.

    Returns the Element that is the first child of the object, or null if there is none.

    MDN

    Definition Classes
    ParentNode
  37. def focus(): Unit

    Sets focus on the specified element, if it can be focused.

    Sets focus on the specified element, if it can be focused.

    MDN

    Definition Classes
    HTMLElement
  38. var form: HTMLFormElement

    If the option is a descendent of a

    If the option is a descendent of a