Trait

outwatch.dom

InputAttributes

Related Doc: package dom

Permalink

trait InputAttributes extends AnyRef

Attributes applicable only to the input element. This set is broken out because it may be useful to identify the attributes of the input element separately from other groupings. The attributes permitted by the input element are likely the most complex of any element in HTML5.

This group also contains some attributes that are applicable to the form element itself.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InputAttributes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object InputType

    Permalink

    The type of control to display.

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

    MDN

  5. lazy val accept: AttributeBuilder[Any]

    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.

    MDN

  6. lazy val acceptCharset: AttributeBuilder[Any]

    Permalink

    A space- or comma-delimited list of character encodings that the server accepts.

    A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string "UNKNOWN", indicates the same encoding as that of the document containing the form element. In previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.

    MDN

  7. lazy val action: AttributeBuilder[Any]

    Permalink

    The URI of a program that processes the information submitted via the form.

    The URI of a program that processes the information submitted via the form. This value can be overridden by a formaction attribute on a button or input element.

    MDN

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. lazy val autocomplete: AttributeBuilder[Any]

    Permalink

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

    This attribute indicates whether the value of the control can be automatically completed by the browser. This attribute is ignored if the value of the type attribute is hidden, checkbox, radio, file, or a button type (button, submit, reset, image).

    Possible values are "off" and "on"

    MDN

  10. lazy val autofocus: BoolAttributeBuilder

    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).

    MDN

  11. lazy val checked: BoolAttributeBuilder

    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.

    MDN

  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. lazy val cols: AttributeBuilder[Double]

    Permalink

    The visible width of the text control, in average character widths.

    The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is 20 (HTML5).

    MDN

  14. lazy val enctype: AttributeBuilder[Any]

    Permalink

    The enctype attribute provides the encoding type of the form when it is submitted (for forms with a method of "POST").

  15. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. lazy val for: AttributeBuilder[Any]

    Permalink

    Describes elements which belongs to this one.

    Describes elements which belongs to this one. Used on labels and output elements.

    MDN

  19. lazy val forLabel: AttributeBuilder[Any]

    Permalink

    Shorthand for the for attribute.

  20. lazy val form: AttributeBuilder[Any]

    Permalink

    The form attribute specifies one or more forms an <input> element belongs to.

  21. lazy val formaction: AttributeBuilder[Any]

    Permalink

    The formaction attribute provides the URL that will process the input control when the form is submitted and overrides the default action attribute of the form element.

    The formaction attribute provides the URL that will process the input control when the form is submitted and overrides the default action attribute of the form element. This should be used only with input elements of type submit or image.

  22. lazy val formenctype: AttributeBuilder[Any]

    Permalink

    The formenctype attribute provides the encoding type of the form when it is submitted (for forms with a method of "POST") and overrides the default enctype attribute of the form element.

    The formenctype attribute provides the encoding type of the form when it is submitted (for forms with a method of "POST") and overrides the default enctype attribute of the form element. This should be used only with the input elements of type "submit" or "image"

  23. lazy val formmethod: AttributeBuilder[Any]

    Permalink

    The formmethod attribute specifies the HTTP Method the form should use when it is submitted and overrides the default method attribute of the form element.

    The formmethod attribute specifies the HTTP Method the form should use when it is submitted and overrides the default method attribute of the form element. This should be used only with the input elements of type "submit" or "image".

  24. lazy val formnovalidate: AttributeBuilder[Any]

    Permalink

    The formnovalidate Boolean attribute specifies that the input of the form should not be validated upon submit and overrides the default novalidate attribute of the form.

    The formnovalidate Boolean attribute specifies that the input of the form should not be validated upon submit and overrides the default novalidate attribute of the form. This should only be used with input elements of of type "submit".

  25. lazy val formtarget: AttributeBuilder[Any]

    Permalink

    The formtarget provides a name or keyword that indicates where to display the response that is received after submitting the form and overrides the target attribute of them form element.

    The formtarget provides a name or keyword that indicates where to display the response that is received after submitting the form and overrides the target attribute of them form element. This should only be used with the input elements of type "submit" or "image"

  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. lazy val inputType: AttributeBuilder[Any]

    Permalink

    The type of control to display.

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

  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. lazy val list: AttributeBuilder[Any]

    Permalink

    The list attribute refers to a <datalist> element that contains the options for an input element the presents a select list.

  31. lazy val max: AttributeBuilder[Double]

    Permalink

    The max attribute specifies the maximum value for an <input> element of type number, range, date, datetime, datetime-local, month, time, or week.

  32. lazy val maxlength: AttributeBuilder[Int]

    Permalink

    The maximum allowed length for the input field.

    The maximum allowed length for the input field. This attribute forces the input control to accept no more than the allowed number of characters. It does not produce any feedback to the user; you must write Javascript to make that happen.

  33. lazy val method: AttributeBuilder[Any]

    Permalink

    The HTTP method that the browser uses to submit the form.

    The HTTP method that the browser uses to submit the form. Possible values are:

    post: Corresponds to the HTTP POST method ; form data are included in the body of the form and sent to the server.

    get: Corresponds to the HTTP GET method; form data are appended to the action 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.

    This value can be overridden by a formmethod attribute on a button or input element.

    MDN

  34. lazy val min: AttributeBuilder[Double]

    Permalink

    The min attribute specifies the minimum value for an <input> element of type number, range, date, datetime, datetime-local, month, time, or week.

  35. lazy val minlength: AttributeBuilder[Int]

    Permalink

    The minimum allowed length for the input field.

    The minimum allowed length for the input field. This attribute forces the input control to accept no less than the allowed number of characters. It does not produce any feedback to the user; you must write Javascript to make that happen.

  36. lazy val multiple: AttributeBuilder[Any]

    Permalink

    This Boolean attribute specifies, when present/true, that the user is allowed to enter more than one value for the <input> element for types "email" or "file".

    This Boolean attribute specifies, when present/true, that the user is allowed to enter more than one value for the <input> element for types "email" or "file". It can also be provided to the <select> element to allow selecting more than one option.

  37. lazy val name: AttributeBuilder[String]

    Permalink

    On form elements (input etc.): Name of the element.

    On form elements (input etc.): Name of the element. For example used by the server to identify the fields in form submits.

    On the meta tag: This attribute defines the name of a document-level metadata. This document-level metadata name is associated with a value, contained by the content attribute.

    MDN

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

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

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

    Permalink
    Definition Classes
    AnyRef
  41. lazy val novalidate: BoolAttributeBuilder

    Permalink

    This Boolean attribute indicates that the form is not to be validated when submitted.

    This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a formnovalidate attribute on a

  42. lazy val pattern: AttributeBuilder[Any]

    Permalink

    Specifies a regular expression to validate the input.

    Specifies a regular expression to validate the input. The pattern attribute works with the following input types: text, search, url, tel, email, and password. Use the title attribute to describe the pattern to the user.

  43. lazy val placeholder: AttributeBuilder[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.

    MDN

  44. lazy val readonly: BoolAttributeBuilder

    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. This attribute is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type.

    MDN

  45. lazy val required: BoolAttributeBuilder

    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.

    MDN

  46. lazy val rows: AttributeBuilder[Double]

    Permalink

    The number of visible text lines for the control.

    The number of visible text lines for the control.

    MDN

  47. lazy val selected: BoolAttributeBuilder

    Permalink

    If present, this Boolean attribute indicates that the option is initially selected.

    If present, this Boolean attribute indicates that the option is initially selected. If the <option> element is the descendant of a <select> element whose multiple attribute is not set, only one single <option> of this <select> element may have the selected attribute.

    MDN

  48. lazy val size: AttributeBuilder[Int]

    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.

    MDN

  49. lazy val step: AttributeBuilder[Double]

    Permalink

    The step attribute specifies the numeric intervals for an <input> element that should be considered legal for the input.

    The step attribute specifies the numeric intervals for an <input> element that should be considered legal for the input. For example, if step is 2 on a number typed <input> then the legal numbers could be -2, 0, 2, 4, 6 etc. The step attribute should be used in conjunction with the min and max attributes to specify the full range and interval of the legal values. The step attribute is applicable to <input> elements of the following types: number, range, date, datetime, datetime-local, month, time and week.

  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. lazy val target: AttributeBuilder[Any]

    Permalink

    A name or keyword indicating where to display the response that is received after submitting the form.

    A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name of, or a keyword for, a frame. In HTML5, it is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). The following keywords have special meanings:

    _self: Load the response into the same HTML 4 frame (or HTML5 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 HTML 4 window or HTML5 browsing context.

    _parent: Load the response into the HTML 4 frameset parent of the current frame or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.

    _top: HTML 4: Load the response into the full, original window, canceling all other frames. HTML5: 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.

    iframename: The response is displayed in a named iframe.

  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. lazy val value: AttributeBuilder[Any]

    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.

    MDN

  54. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. lazy val wrap: AttributeBuilder[Any]

    Permalink

    Indicates how the control wraps text.

    Indicates how the control wraps text. Possible values are: hard: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the cols attribute must be specified.

    soft: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.

    off: Like soft but changes appearance to white-space: pre so line segments exceeding cols are not wrapped and area becomes horizontally scrollable.

    If this attribute is not specified, soft is its default value.

    MDN

Deprecated Value Members

  1. lazy val maxLength: AttributeBuilder[Int]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.0) Deprecated, use 'maxlength' instead

  2. lazy val minLength: AttributeBuilder[Int]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.0) Deprecated, use 'minlength' instead

Inherited from AnyRef

Inherited from Any

Ungrouped