Class

pl.metastack.metaweb.tag

Input

Related Doc: package tag

Permalink

case class Input(attributes: scala.Predef.Map[String, Any] = Predef.Map.empty, children: Seq[Node] = Seq.empty) extends HTMLTag[Input] with Product with Serializable

The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user. How an <input> works varies considerably depending on the value of its type attribute.

Linear Supertypes
Serializable, Serializable, Product, Equals, HTMLTag[Input], Tag, Node, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Input
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HTMLTag
  7. Tag
  8. Node
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Input(attributes: scala.Predef.Map[String, Any] = Predef.Map.empty, children: Seq[Node] = Seq.empty)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(nodes: Seq[Node]): Tag

    Permalink
    Definition Classes
    Tag
  4. def +:(node: Node): Tag

    Permalink
    Definition Classes
    Tag
  5. def -(node: Node): Tag

    Permalink
    Definition Classes
    Tag
  6. def --(node: Seq[Node]): Tag

    Permalink
    Definition Classes
    Tag
  7. def :+(node: Node): Tag

    Permalink
    Definition Classes
    Tag
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def accept(value: String): Input

    Permalink
  10. def accept: scala.Option[String]

    Permalink

    If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored.

    If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored. The value must be a comma-separated list of unique content type specifiers:

    • A file extension starting with the STOP character (U+002E). (E.g.: ".jpg,.png,.doc")
    • A valid MIME type with no extensions
    • audio/ representing sound files HTML5
    • video/ representing video files HTML5
    • image/ representing image files HTML5
  11. def accesskey(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  12. def accesskey: scala.Option[String]

    Permalink

    Provides a hint for generating a keyboard shortcut for the current element.

    Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout.

    Definition Classes
    HTMLTag
  13. def append(node: Node): Tag

    Permalink
    Definition Classes
    Tag
  14. def appendAll(nodes: Seq[Node]): Tag

    Permalink
    Definition Classes
    Tag
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def attr(attribute: String): scala.Option[Any]

    Permalink
    Definition Classes
    Tag
  17. val attributes: scala.Predef.Map[String, Any]

    Permalink
    Definition Classes
    InputTag
  18. def autocapitalize(value: String): Input

    Permalink
  19. def autocapitalize: scala.Option[String]

    Permalink

    This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user.

    This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:

    • none: Completely disables automatic capitalization
    • sentences: Automatically capitalize the first letter of sentences.
    • words: Automatically capitalize the first letter of words.
    • characters: Automatically capitalize all characters.
    • on: Deprecated since iOS 5.
    • off: Deprecated since iOS 5.

    autocapitalize documentation in the Safari HTML Reference

  20. def autocomplete(value: String): Input

    Permalink
  21. def autocomplete: scala.Option[String]

    Permalink

    This attribute indicates whether the value of the control can be automatically completed by the browser.

  22. def autocorrect(value: String): Input

    Permalink
  23. def autocorrect: scala.Option[String]

    Permalink

    This is a nonstandard attribute supported by Safari that is used to control whether autocorrection should be enabled when the user is entering/editing the text value of the <input>. Possible attribute values are: - on: Enable autocorrection - off: Disable autocorrection autocorrect documentation in the Safari HTML Reference

    This is a nonstandard attribute supported by Safari that is used to control whether autocorrection should be enabled when the user is entering/editing the text value of the <input>. Possible attribute values are: - on: Enable autocorrection - off: Disable autocorrection autocorrect documentation in the Safari HTML Reference

  24. def autofocus(value: Boolean): Input

    Permalink
  25. def autofocus: Boolean

    Permalink

    This Boolean attribute lets you specify that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control.

    This Boolean attribute lets you specify that a form 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 element in a document can have the autofocus attribute, which is a Boolean. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).

  26. def autosave(value: String): Input

    Permalink
  27. def autosave: scala.Option[String]

    Permalink

    This attribute should be defined as a unique value.

    This attribute should be defined as a unique value. If the value of the type attribute is search, previous search term values will persist in the dropdown across page load.

  28. def byClass[T <: Tag](class: String): T

    Permalink
    Definition Classes
    Tag
  29. def byClassOpt[T <: HTMLTag[_]](class: String): scala.Option[T]

    Permalink
    Definition Classes
    Tag
  30. def byId[T <: Tag](id: String): T

    Permalink
    Definition Classes
    Tag
  31. def byIdOpt[T <: Tag](id: String): scala.Option[T]

    Permalink
    Definition Classes
    Tag
  32. def byTag[T <: Tag](tagName: String): T

    Permalink
    Definition Classes
    Tag
  33. def byTagOpt[T <: Tag](tag: String): scala.Option[T]

    Permalink
    Definition Classes
    Tag
  34. def checked(value: Boolean): Input

    Permalink
  35. def checked: Boolean

    Permalink

    When the value of the type attribute is radio or checkbox, the presence of this Boolean attribute indicates that the control is selected by default; otherwise it is ignored.

    When the value of the type attribute is radio or checkbox, the presence of this Boolean attribute indicates that the control is selected by default; otherwise it is ignored.

    Firefox will, unlike other browsers, by default, persist the dynamic checked state of an <input> across page loads. Use the autocomplete attribute to control this feature.

  36. val children: Seq[Node]

    Permalink
    Definition Classes
    InputTag
  37. def class(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  38. def class: scala.Option[String]

    Permalink

    Is a space-separated list of the classes of the element.

    Is a space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method Document.getElementsByClassName().

    Definition Classes
    HTMLTag
  39. def clearAll: Tag

    Permalink
    Definition Classes
    Tag
  40. def clearAttr: Tag

    Permalink
    Definition Classes
    Tag
  41. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def contenteditable(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  43. def contenteditable: scala.Option[String]

    Permalink

    Is an enumerated attribute indicating if the element should be editable by the user.

    Is an enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:

    • true or the empty string, which indicates that the element must be editable;
    • false, which indicates that the element must not be editable.
    Definition Classes
    HTMLTag
  44. def contextmenu(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  45. def contextmenu: scala.Option[String]

    Permalink

    Is the id of an <menu> to use as the contextual menu for this element.

    Is the id of an <menu> to use as the contextual menu for this element.

    Definition Classes
    HTMLTag
  46. def copy(attributes: scala.Predef.Map[String, Any] = attributes, children: Seq[Node] = children): Input

    Permalink
    Definition Classes
    InputTag
  47. def dir(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  48. def dir: scala.Option[String]

    Permalink

    Is an enumerated attribute indicating the directionality of the element's text.

    Is an enumerated attribute indicating the directionality of the element's text. It can have the following values:

    • ltr, which means left to right and is to be used for languages that are written from the left to the right (like English);
    • rtl, which means right to left and is to be used for languages that are written from the right to the left (like Arabic);
    • auto, which let the user agent decides. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then apply that directionality to the whole element.
    Definition Classes
    HTMLTag
  49. def disabled(value: Boolean): Input

    Permalink
  50. def disabled: Boolean

    Permalink

    This Boolean attribute indicates that the form control is not available for interaction.

    This Boolean attribute indicates that the form control is not available for interaction. In particular, the click event will not be dispatched on disabled controls. Also, a disabled control's value isn't submitted with the form.

    Firefox will, unlike other browsers, by default, persist the dynamic disabled state of an <input> across page loads. Use the autocomplete attribute to control this feature.

  51. def draggable(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  52. def draggable: scala.Option[String]

    Permalink

    Is an enumerated attribute indicating whether the element can be dragged, using the Drag and Drop API.

    Is an enumerated attribute indicating whether the element can be dragged, using the Drag and Drop API. It can have the following values:

    • true, which indicates that the element may be dragged
    • false, which indicates that the element may not be dragged.
    Definition Classes
    HTMLTag
  53. def dropzone(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  54. def dropzone: scala.Option[String]

    Permalink

    Is an enumerated attribute indicating what types of content can be dropped on an element, using the Drag and Drop API.

    Is an enumerated attribute indicating what types of content can be dropped on an element, using the Drag and Drop API. It can have the following values:

    • copy, which indicates that dropping will create a copy of the element that was dragged
    • move, which indicates that the element that was dragged will be moved to this new location.
    • link, will create a link to the dragged data.
    Definition Classes
    HTMLTag
  55. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  56. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  57. def find(f: (Node) ⇒ Boolean): scala.Option[Node]

    Permalink
    Definition Classes
    Tag
  58. def form(value: String): Input

    Permalink
  59. def form: scala.Option[String]

    Permalink

    The form element that the input element is associated with (its form owner).

    The form element that the input element is associated with (its form owner). The value of the attribute must be an id of a <form> element in the same document. If this attribute is not specified, this <input> element must be a descendant of a <form> element. This attribute enables you to place <input> elements anywhere within a document, not just as descendants of their form elements. An input can only be associated with one form.

  60. def formaction(value: String): Input

    Permalink
  61. def formaction: scala.Option[String]

    Permalink

    The URI of a program that processes the information submitted by the input element, if it is a submit button or image.

    The URI of a program that processes the information submitted by the input element, if it is a submit button or image. If specified, it overrides the action attribute of the element's form owner.

  62. def formenctype(value: String): Input

    Permalink
  63. def formenctype: scala.Option[String]

    Permalink

    If the input element is a submit button or image, this attribute specifies the type of content that is used to submit the form to the server.

    If the input element is a submit button or image, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:

    • application/x-www-form-urlencoded: The default value if the attribute is not specified.
    • multipart/form-data: Use this value if you are using an <input> element with the type attribute set to file. - text/plain If this attribute is specified, it overrides the enctype attribute of the element's form owner.
  64. def formmethod(value: String): Input

    Permalink
  65. def formmethod: scala.Option[String]

    Permalink

    If the input element is a submit button or image, this attribute specifies the HTTP method that the browser uses to submit the form.

    If the input element is a submit button or image, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:

    • post: The data from the form is included in the body of the form and is sent to the server.
    • get: The data from the form are appended to the form attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.

    If specified, this attribute overrides the method attribute of the element's form owner.

  66. def formnovalidate(value: String): Input

    Permalink
  67. def formnovalidate: scala.Option[String]

    Permalink

    If the input element is a submit button or image, this Boolean attribute specifies that the form is not to be validated when it is submitted.

    If the input element is a submit button or image, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the novalidate attribute of the element's form owner.

  68. def formtarget(value: String): Input

    Permalink
  69. def formtarget: scala.Option[String]

    Permalink

    If the input element is a submit button or image, this attribute is a name or keyword indicating where to display the response that is received after submitting the form.

    If the input element is a submit button or image, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). If this attribute is specified, it overrides the target attribute of the elements's form owner. The following keywords have special meanings:

    • _self: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.
    • _blank: Load the response into a new unnamed browsing context.
    • _parent: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.
    • _top: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self.
  70. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  71. def height(value: String): Input

    Permalink
  72. def height: scala.Option[String]

    Permalink

    If the value of the type attribute is image, this attribute defines the height of the image displayed for the button.

    If the value of the type attribute is image, this attribute defines the height of the image displayed for the button.

  73. def hidden(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  74. def hidden: scala.Option[String]

    Permalink

    Is a Boolean attribute indicates that the element is not yet, or is no longer, relevant.

    Is a Boolean attribute indicates that the element is not yet, or is no longer, relevant. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown.

    Definition Classes
    HTMLTag
  75. def id(value: String): Input

    Permalink
    Definition Classes
    HTMLTagTag
  76. def id: scala.Option[String]

    Permalink

    Defines a unique identifier (ID) which must be unique in the whole document.

    Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS).

    Definition Classes
    HTMLTagTag
  77. def incremental(value: String): Input

    Permalink
  78. def incremental: scala.Option[String]

    Permalink

    This is a nonstandard attribute supported by Safari that only applies when the type is search.

    This is a nonstandard attribute supported by Safari that only applies when the type is search. If the attribute is present, regardless of what its value is, the <input> fires search events as the user edits the text value. The event is only fired after an implementation-defined timeout has elapsed since the most recent keystroke; new keystrokes reset the timeout. In other words, the event firing is debounced. If the attribute is absent, the search event is only fired when the user explicitly initiates a search (e.g. by pressing the Enter key while within field). incremental documentation in the Safari HTML Reference

  79. def inputmode(value: String): Input

    Permalink
  80. def inputmode: scala.Option[String]

    Permalink

    A hint to the browser for which keyboard to display.

    A hint to the browser for which keyboard to display. This attribute applies when the value of the type attribute is text, password, email, or url. Possible values are:

    • verbatim: Alphanumeric, non-prose content such as usernames and passwords.
    • latin: Latin-script input in the user's preferred language with typing aids such as text prediction enabled. For human-to-computer communication such as search boxes.
    • latin-name: As latin, but for human names.
    • latin-prose: As latin, but with more aggressive typing aids. For human-to-human communication such as instant messaging or email.
    • full-width-latin: As latin-prose, but for the user's secondary languages.
    • kana: Kana or romaji input, typically hiragana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.
    • katakana: Katakana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.
    • numeric: Numeric input, including keys for the digits 0 to 9, the user's preferred thousands separator character, and the character for indicating negative numbers. Intended for numeric codes, e.g. credit card numbers. For actual numbers, prefer using <input type="number">
    • tel: Telephone input, including asterisk and pound key. Use <input type="tel"> if possible instead.
    • email: Email input. Use <input type="email"> if possible instead.
    • url: URL input. Use <input type="url"> if possible instead.
  81. def instantiate(nodes: (String, Node)*): Tag

    Permalink
    Definition Classes
    Tag
  82. def instantiateMap(nodes: scala.Predef.Map[String, Node]): Tag

    Permalink
    Definition Classes
    Tag
  83. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  84. def itemid(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  85. def itemid: scala.Option[String]

    Permalink

    Definition Classes
    HTMLTag
  86. def itemprop(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  87. def itemprop: scala.Option[String]

    Permalink

    Definition Classes
    HTMLTag
  88. def itemref(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  89. def itemref: scala.Option[String]

    Permalink

    Definition Classes
    HTMLTag
  90. def itemscope(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  91. def itemscope: scala.Option[String]

    Permalink

    Definition Classes
    HTMLTag
  92. def itemtype(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  93. def itemtype: scala.Option[String]

    Permalink

    These attributes are related to the WHATWG HTML Microdata feature.

    These attributes are related to the WHATWG HTML Microdata feature.

    Definition Classes
    HTMLTag
  94. def lang(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  95. def lang: scala.Option[String]

    Permalink

    Participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in.

    Participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in. The tag contains one single entry value in the format defines in the Tags for Identifying Languages (BCP47) IETF document. xml:lang has priority over it.

    Definition Classes
    HTMLTag
  96. def list(value: String): Input

    Permalink
  97. def list: scala.Option[String]

    Permalink

    Identifies a list of pre-defined options to suggest to the user.

    Identifies a list of pre-defined options to suggest to the user. The value must be the id of a <datalist> element in the same document. The browser displays only options that are valid values for this input element. This attribute is ignored when the type attribute's value is hidden, checkbox, radio, file, or a button type.

  98. def map(f: (Node) ⇒ Node): Node

    Permalink
    Definition Classes
    TagNode
  99. def max(value: String): Input

    Permalink
  100. def max: scala.Option[String]

    Permalink

    The maximum (numeric or date-time) value for this item, which must not be less than its minimum ( min attribute) value.

    The maximum (numeric or date-time) value for this item, which must not be less than its minimum ( min attribute) value.

  101. def maxlength(value: String): Input

    Permalink
  102. def maxlength: scala.Option[String]

    Permalink

    If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the maximum number of characters (in Unicode code points) that the user can enter; for other control types, it is ignored.

    If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the maximum number of characters (in Unicode code points) that the user can enter; for other control types, it is ignored. It can exceed the value of the size attribute. If it is not specified, the user can enter an unlimited number of characters. Specifying a negative number results in the default behavior; that is, the user can enter an unlimited number of characters. The constraint is evaluated only when the value of the attribute has been changed.

  103. def min(value: String): Input

    Permalink
  104. def min: scala.Option[String]

    Permalink

    The minimum (numeric or date-time) value for this item, which must not be greater than its maximum ( max attribute) value.

    The minimum (numeric or date-time) value for this item, which must not be greater than its maximum ( max attribute) value.

  105. def minlength(value: String): Input

    Permalink
  106. def minlength: scala.Option[String]

    Permalink

    If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the minimum number of characters (in Unicode code points) that the user can enter; for other control types, it is ignored.

    If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the minimum number of characters (in Unicode code points) that the user can enter; for other control types, it is ignored.

  107. def mozactionhint(value: String): Input

    Permalink
  108. def mozactionhint: scala.Option[String]

    Permalink

    Specifies an "action hint" used to determine how to label the enter key on mobile devices with virtual keyboards.

    Specifies an "action hint" used to determine how to label the enter key on mobile devices with virtual keyboards. Supported values are go, done, next, search, and send; these automatically get mapped to the appropriate string (and are case-insensitive).

  109. def multiple(value: String): Input

    Permalink
  110. def multiple: scala.Option[String]

    Permalink

    This Boolean attribute indicates whether the user can enter more than one value.

    This Boolean attribute indicates whether the user can enter more than one value. This attribute applies when the type attribute is set to email or file; otherwise it is ignored.

  111. def name(value: String): Input

    Permalink
  112. def name: scala.Option[String]

    Permalink

    The name of the control, which is submitted with the form data.

  113. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  114. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  115. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  116. def partialMap(f: PartialFunction[Node, Node]): Node

    Permalink
    Definition Classes
    Tag
  117. def pattern(value: String): Input

    Permalink
  118. def pattern: scala.Option[String]

    Permalink

    A regular expression that the control's value is checked against.

    A regular expression that the control's value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored. The regular expression language is the same as JavaScript's. The pattern is not surrounded by forward slashes.

  119. def placeholder(value: String): Input

    Permalink
  120. def placeholder: scala.Option[String]

    Permalink

    A hint to the user of what can be entered in the control .

    A hint to the user of what can be entered in the control . The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.

    Note: Do not use the placeholder attribute instead of a <label> element. Their purposes are different: the <label> attribute describes the role of the form element; that is, it indicates what kind of information is expected, the placeholder attribute is a hint about the format the content should take. There are cases in which the placeholder attribute is never displayed to the user, so the form must be understandable without it.

  121. def prepend(node: Node): Tag

    Permalink
    Definition Classes
    Tag
  122. def readonly(value: String): Input

    Permalink
  123. def readonly: scala.Option[String]

    Permalink

    This Boolean attribute indicates that the user cannot modify the value of the control.

    This Boolean attribute indicates that the user cannot modify the value of the control. It is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type (such as button or submit).

  124. def remAttr(attribute: String): Tag

    Permalink
    Definition Classes
    Tag
  125. def remove(node: Node): Tag

    Permalink
    Definition Classes
    Tag
  126. def removeAll(node: Seq[Node]): Tag

    Permalink
    Definition Classes
    Tag
  127. def replace(reference: Node, node: Node): Tag

    Permalink
    Definition Classes
    Tag
  128. def required(value: Boolean): Input

    Permalink
  129. def required: Boolean

    Permalink

    This attribute specifies that the user must fill in a value before submitting a form.

    This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type ( submit, reset, or button). The :optional and :required CSS pseudo-classes will be applied to the field as appropriate.

  130. def results(value: String): Input

    Permalink
  131. def results: scala.Option[String]

    Permalink

    This is a nonstandard attribute supported by Safari that only applies when the type is search.

    This is a nonstandard attribute supported by Safari that only applies when the type is search. It is used to control the maximum number of entries that should be displayed in the <input>'s native dropdown list of past search queries. Its value should be a nonnegative decimal integer.

  132. def selectionDirection(value: String): Input

    Permalink
  133. def selectionDirection: scala.Option[String]

    Permalink

    The direction in which selection occurred.

    The direction in which selection occurred. This is "forward" if the selection was made from left-to-right in an LTR locale or right-to-left in an RTL locale, or "backward" if the selection was made in the opposite direction. This can be "none" if the selection direction is unknown.

  134. def set(nodes: Seq[Node]): Tag

    Permalink
    Definition Classes
    Tag
  135. def set(node: Node): Tag

    Permalink
    Definition Classes
    Tag
  136. def setAttr(attribute: String, value: Any): Tag

    Permalink
    Definition Classes
    Tag
  137. def size(value: Long): Input

    Permalink
  138. def size: scala.Option[Long]

    Permalink

    The initial size of the control.

    The initial size of the control. This value is in pixels unless the value of the type attribute is text or password, in which case, it is an integer number of characters. Starting in HTML5, this attribute applies only when the type attribute is set to text, search, tel, url, email, or password; otherwise it is ignored. In addition, the size must be greater than zero. If you don't specify a size, a default value of 20 is used.

  139. def spellcheck(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  140. def spellcheck: scala.Option[String]

    Permalink

    Is an enumerated attribute defines whether the element may be checked for spelling errors.

    Is an enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:

    • true, which indicates that the element should be, if possible, checked for spelling errors;
    • false, which indicates that the element should not be checked for spelling errors.
    Definition Classes
    HTMLTag
  141. def src(value: String): Input

    Permalink
  142. def src: scala.Option[String]

    Permalink

    If the value of the type attribute is image, this attribute specifies a URI for the location of an image to display on the graphical submit button; otherwise it is ignored.

    If the value of the type attribute is image, this attribute specifies a URI for the location of an image to display on the graphical submit button; otherwise it is ignored.

  143. def step(value: String): Input

    Permalink
  144. def step: scala.Option[String]

    Permalink

    Works with the min and max attributes to limit the increments at which a numeric or date-time value can be set.

    Works with the min and max attributes to limit the increments at which a numeric or date-time value can be set. It can be the string any or a positive floating point number. If this attribute is not set to any, the control accepts only values at multiples of the step value greater than the minimum.

  145. def style(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  146. def style: scala.Option[String]

    Permalink

    Contains CSS styling declarations to be applied to the element.

    Contains CSS styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the <style> element have mainly the purpose of allowing for quick styling, for example for testing purposes.

    Definition Classes
    HTMLTag
  147. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  148. def tabindex(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  149. def tabindex: scala.Option[String]

    Permalink

    Is an integer attribute indicates if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation, and if so, at what position.

    Is an integer attribute indicates if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation, and if so, at what position. It can takes several values:

    • a negative value means that the element should be focusable, but should not be reachable via sequential keyboard navigation;
    • 0 means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
    • a positive value which means should be focusable and reachable via sequential keyboard navigation; its relative order is defined by the value of the attribute: the sequential follow the increasing number of the tabindex. If several elements share the same tabindex, their relative order follows their relative position in the document).
    Definition Classes
    HTMLTag
  150. def tagName: String

    Permalink
    Definition Classes
    InputTag
  151. def title(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  152. def title: scala.Option[String]

    Permalink

    Contains a text representing advisory information related to the element it belongs to.

    Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip.

    Definition Classes
    HTMLTag
  153. def translate(value: String): Input

    Permalink
    Definition Classes
    HTMLTag
  154. def translate: scala.Option[String]

    Permalink

    Is an enumerated attribute that is used to specify whether an element's attribute values and the values of it s Text node children are to be translated when the page is localized, or whether to leave them unchanged.

    Is an enumerated attribute that is used to specify whether an element's attribute values and the values of it s Text node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:

    • empty string and "yes", which indicates that the element will be translated.
    • "no", which indicates that the element will not be translated.
    Definition Classes
    HTMLTag
  155. def type(value: String): Input

    Permalink
  156. def type: scala.Option[String]

    Permalink

    The type of control to display.

    The type of control to display. The default type is text, if this attribute is not specified. Possible values are:

    • button: A push button with no default behavior.
    • checkbox: A check box. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected. You can also use the indeterminate attribute to indicate that the checkbox is in an indeterminate state (on most platforms, this draws a horizontal line across the checkbox).
    • color: HTML5 A control for specifying a color. A color picker's UI has no required features other than accepting simple colors as text (more info).
    • date: HTML5 A control for entering a date (year, month, and day, with no time).
    • datetime: HTML5 A control for entering a date and time (hour, minute, second, and fraction of a second) based on UTC time zone.
    • datetime-local: HTML5 A control for entering a date and time, with no time zone.
    • email: HTML5 A field for editing an e-mail address. The input value is validated to contain either the empty string or a single valid e-mail address before submitting. The :valid and :invalid CSS pseudo-classes are applied as appropriate. - file: A control that lets the user select a file. Use the accept attribute to define the types of files that the control can select. - hidden: A control that is not displayed, but whose value is submitted to the server. - image: A graphical submit button. You must use the src attribute to define the source of the image and the alt attribute to define alternative text. You can use the height and width attributes to define the size of the image in pixels. - month: HTML5 A control for entering a month and year, with no time zone. - number: HTML5 A control for entering a floating point number. - password: A single-line text field whose value is obscured. Use the maxlength attribute to specify the maximum length of the value that can be entered. - radio: A radio button. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected by default. Radio buttons that have the same value for the name attribute are in the same "radio button group"; only one radio button in a group can be selected at a time. - range: HTML5 A control for entering a number whose exact value is not important. This type control uses the following default values if the corresponding attributes are not specified: - min: 0 - max: 100 - value: min + (max-min)/2, or min if max is less than min - step: 1 - reset: A button that resets the contents of the form to default values. - search: HTML5 A single-line text field for entering search strings; line-breaks are automatically removed from the input value. - submit: A button that submits the form. - tel: HTML5 A control for entering a telephone number; line-breaks are automatically removed from the input value, but no other syntax is enforced. You can use attributes such as pattern and maxlength to restrict values entered in the control. The :valid and :invalid CSS pseudo-classes are applied as appropriate. - text: A single-line text field; line-breaks are automatically removed from the input value. - time: HTML5 A control for entering a time value with no time zone. - url: HTML5 A field for editing a URL. The input value is validated to contain either the empty string or a valid absolute URL before submitting. Line-breaks and leading or trailing whitespace are automatically removed from the input value. You can use attributes such as pattern and maxlength to restrict values entered in the control. The :valid and :invalid CSS pseudo-classes are applied as appropriate. - week: HTML5 A control for entering a date consisting of a week-year number and a week number with no time zone.
  157. def updateChild[T <: Tag](id: String, f: (T) ⇒ Node): Node

    Permalink
    Definition Classes
    Tag
  158. def usemap(value: String): Input

    Permalink
  159. def usemap: scala.Option[String]

    Permalink

    The name of a <map> element to be used as an image map.

    The name of a <map> element to be used as an image map.

  160. def value(value: String): Input

    Permalink
  161. def value: scala.Option[String]

    Permalink

    The initial value of the control.

    The initial value of the control. This attribute is optional except when the value of the type attribute is radio or checkbox.
    Note that when reloading the page, Gecko and IE will ignore the value specified in the HTML source, if the value was changed before the reload.

  162. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  163. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  164. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  165. def width(value: String): Input

    Permalink
  166. def width: scala.Option[String]

    Permalink

    If the value of the type attribute is image, this attribute defines the width of the image displayed for the button.

    If the value of the type attribute is image, this attribute defines the width of the image displayed for the button.

  167. def withoutId: Tag

    Permalink
    Definition Classes
    Tag
  168. def x-moz-errormessage(value: String): Input

    Permalink
  169. def x-moz-errormessage: scala.Option[String]

    Permalink

    This Mozilla extension allows you to specify the error message to display when a field doesn't successfully validate.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HTMLTag[Input]

Inherited from Tag

Inherited from Node

Inherited from AnyRef

Inherited from Any

Ungrouped