Trait

scalatags.generic

InputAttrs

Related Doc: package generic

Permalink

trait InputAttrs[Builder, Output <: FragT, FragT] extends GlobalAttrs[Builder, Output, FragT]

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.

Linear Supertypes
GlobalAttrs[Builder, Output, FragT], Util[Builder, Output, FragT], LowPriUtil[Builder, Output, FragT], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InputAttrs
  2. GlobalAttrs
  3. Util
  4. LowPriUtil
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type ConcreteHtmlTag[T <: Output] <: TypedTag[Builder, T, FragT]

    Permalink
    Definition Classes
    Util
  2. class DataAttribute extends Dynamic

    Permalink
    Definition Classes
    GlobalAttrs
  3. implicit class SeqNode[A] extends Modifier[Builder]

    Permalink

    Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

    Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

    Definition Classes
    Util

Abstract Value Members

  1. implicit abstract def SeqFrag[A](xs: Seq[A])(implicit ev: (A) ⇒ Frag[Builder, FragT]): Frag[Builder, FragT]

    Permalink

    Renders an Seq of FragT into a single FragT

    Renders an Seq of FragT into a single FragT

    Definition Classes
    LowPriUtil
  2. implicit abstract def UnitFrag(u: Unit): Frag[Builder, FragT]

    Permalink

    Lets you put Unit into a scalatags tree, as a no-op.

    Lets you put Unit into a scalatags tree, as a no-op.

    Definition Classes
    LowPriUtil
  3. abstract def makeAbstractTypedTag[T <: Output](tag: String, void: Boolean, namespaceConfig: Namespace): ConcreteHtmlTag[T]

    Permalink
    Definition Classes
    Util
  4. implicit abstract def stringAttrX: AttrValue[Builder, String]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Util
  5. implicit abstract def stringPixelStyleX: PixelStyleValue[Builder, String]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Util
  6. implicit abstract def stringStyleX: StyleValue[Builder, String]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Util
  7. abstract def tag(s: String, void: Boolean = false): TypedTag[Builder, Output, FragT]

    Permalink
    Definition Classes
    Util

Concrete 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. implicit def ArrayFrag[A](xs: Array[A])(implicit ev: (A) ⇒ Frag[Builder, FragT]): Frag[Builder, FragT]

    Permalink

    Renders an Seq of FragT into a single FragT

    Renders an Seq of FragT into a single FragT

    Definition Classes
    LowPriUtil
  5. implicit def ArrayNode[A](xs: Array[A])(implicit ev: (A) ⇒ Modifier[Builder]): SeqNode[A]

    Permalink

    Allows you to modify a ConcreteHtmlTag by adding an Array containing other nest-able objects to its list of children.

    Allows you to modify a ConcreteHtmlTag by adding an Array containing other nest-able objects to its list of children.

    Definition Classes
    Util
  6. implicit def OptionFrag[A](xs: Option[A])(implicit ev: (A) ⇒ Frag[Builder, FragT]): Frag[Builder, FragT]

    Permalink

    Renders an Option of FragT into a single FragT

    Renders an Option of FragT into a single FragT

    Definition Classes
    LowPriUtil
  7. implicit def OptionNode[A](xs: Option[A])(implicit ev: (A) ⇒ Modifier[Builder]): SeqNode[A]

    Permalink

    Allows you to modify a ConcreteHtmlTag by adding an Option containing other nest-able objects to its list of children.

    Allows you to modify a ConcreteHtmlTag by adding an Option containing other nest-able objects to its list of children.

    Definition Classes
    Util
  8. lazy val accesskey: Attr

    Permalink

    Specifies a shortcut key to activate/focus an element

    Specifies a shortcut key to activate/focus an element

    Definition Classes
    GlobalAttrs
  9. lazy val action: Attr

    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

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def attr(s: String, ns: Namespace = null, raw: Boolean = false): Attr

    Permalink

    Constructs an Attr attribute object from a string; can be used inline:

    Constructs an Attr attribute object from a string; can be used inline:

    div(
      attr("hello-world-special-attr") := "foo
    )

    Or assigned to a name and used later

    val hello = attr("hello-world-special-attr")
    div(
      hello := "foo
    )
    Definition Classes
    Util
  12. lazy val autocomplete: Attr

    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

  13. lazy val autofocus: AttrPair[Builder, String]

    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

  14. lazy val checked: AttrPair[Builder, String]

    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

  15. lazy val class: Attr

    Permalink

    This attribute is a space-separated list of the classes of the element.

    This attribute 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 DOM method document.getElementsByClassName. You can use cls as an alias for this attribute so you don't have to backtick-escape this attribute.

    MDN

    Definition Classes
    GlobalAttrs
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. lazy val cls: Attr

    Permalink

    Shorthand for the class attribute

    Shorthand for the class attribute

    Definition Classes
    GlobalAttrs
  18. lazy val contenteditable: Attr

    Permalink
    Definition Classes
    GlobalAttrs
  19. lazy val contextmenu: Attr

    Permalink
    Definition Classes
    GlobalAttrs
  20. def css(s: String): Style

    Permalink

    Constructs a CSS Style from a string, can be used inline

    Constructs a CSS Style from a string, can be used inline

    div(
      css("-moz-special-style") := "foo"
    )

    Or assigned to a name and used later

    val mozSpecial := css("-moz-special-style")
    div(
      mozSpecial := "foo"
    )
    Definition Classes
    Util
  21. def data(suffix: String): Attr

    Permalink
    Definition Classes
    GlobalAttrs
  22. object data extends DataAttribute

    Permalink

    This class of attributes, called custom data attributes, allows proprietary information to be exchanged between the HTML and its DOM representation that may be used by scripts.

    This class of attributes, called custom data attributes, allows proprietary information to be exchanged between the HTML and its DOM representation that may be used by scripts. All such custom data are available via the HTMLElement interface of the element the attribute is set on. The HTMLElement.dataset property gives access to them.

    The * may be replaced by any name following the production rule of xml names with the following restrictions:

    the name must not start with xml, whatever case is used for these letters; the name must not contain any semicolon (U+003A); the name must not contain capital A to Z letters.

    Note that the HTMLElement.dataset attribute is a StringMap and the name of the custom data attribute data-test-value will be accessible via HTMLElement.dataset.testValue as any dash (U+002D) is replaced by the capitalization of the next letter (camelcase).

    MDN

    Definition Classes
    GlobalAttrs
  23. lazy val dir: Attr

    Permalink

    Specifies the text direction for the content in an element.

    Specifies the text direction for the content in an element. The valid values are:

    - ltr Default. Left-to-right text direction

    - rtl Right-to-left text direction

    - auto Let the browser figure out the text direction, based on the content, (only recommended if the text direction is unknown)

    Definition Classes
    GlobalAttrs
  24. lazy val draggable: AttrPair[Builder, String]

    Permalink

    A Boolean attribute that specifies whether an element is draggable or not

    A Boolean attribute that specifies whether an element is draggable or not

    Definition Classes
    GlobalAttrs
  25. lazy val dropzone: Attr

    Permalink

    Specifies whether the dragged data is copied, moved, or linked, when dropped

    Specifies whether the dragged data is copied, moved, or linked, when dropped

    Definition Classes
    GlobalAttrs
  26. lazy val enctype: Attr

    Permalink

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. lazy val formA: Attr

    Permalink

    The form attribute specifies one or more forms an ` element belongs to.

  31. lazy val formaction: Attr

    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.

  32. lazy val formenctype: Attr

    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"

  33. lazy val formmethod: Attr

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

  34. lazy val formnovalidate: Attr

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

  35. lazy val formtarget: Attr

    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"

  36. def frag(frags: Frag[Builder, FragT]*): Frag[Builder, FragT]

    Permalink
    Definition Classes
    Util
  37. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  39. lazy val heightA: Attr

    Permalink

    The height attribute specifies the height of an input element of type "image".

  40. lazy val hidden: AttrPair[Builder, String]

    Permalink

    Specifies that an element is not yet, or is no longer, relevant and consequently hidden from view of the user.

    Specifies that an element is not yet, or is no longer, relevant and consequently hidden from view of the user.

    Definition Classes
    GlobalAttrs
  41. lazy val id: Attr

    Permalink

    This attribute defines a unique identifier (ID) which must be unique in the whole document.

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

    MDN

    Definition Classes
    GlobalAttrs
  42. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  43. lazy val lang: Attr

    Permalink

    This attribute 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.

    This attribute 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. If the tag content is the empty string the language is set to unknown; if the tag content is not valid, regarding to BCP47, it is set to invalid.

    MDN

    Definition Classes
    GlobalAttrs
  44. lazy val list: Attr

    Permalink

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

  45. lazy val max: Attr

    Permalink

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

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

  46. lazy val maxlength: Attr

    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.

  47. lazy val method: Attr

    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

  48. lazy val min: Attr

    Permalink

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

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

  49. def modifier(mods: Modifier[Builder]*): Modifier[Builder]

    Permalink
    Definition Classes
    Util
  50. lazy val multiple: AttrPair[Builder, String]

    Permalink

    This Boolean attribute specifies, when present/true, that the user is allowed to enter more than one value for the element for types "email" or "file". It can also be provided to the element for types "email" or "file". It can also be provided to the element that should be considered legal for the input. For example, if step is 2 on a number typed 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 elements of the following types: number, range, date, datetime, datetime-local, month, time and week.

    The step attribute specifies the numeric intervals for an element that should be considered legal for the input. For example, if step is 2 on a number typed 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 elements of the following types: number, range, date, datetime, datetime-local, month, time and week.

  51. lazy val style: Attr

    Permalink

    This attribute contains CSS styling declarations to be applied to the element.

    This attribute 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.

    MDN

    Definition Classes
    GlobalAttrs
  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  53. lazy val tabindex: Attr

    Permalink

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

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

    An element with a 0 value, an invalid value, or no tabindex value should be placed after elements with a positive tabindex in the sequential keyboard navigation order.

    Definition Classes
    GlobalAttrs
  54. lazy val target: Attr

    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.

  55. lazy val title: Attr

    Permalink

    This attribute contains a text representing advisory information related to the element it belongs too.

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

    MDN

    Definition Classes
    GlobalAttrs
  56. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  57. lazy val tpe: Attr

    Permalink

    Shorthand for the type attribute

  58. lazy val translate: AttrPair[Builder, String]

    Permalink

    Specifies whether the content of an element should be translated or not

    Specifies whether the content of an element should be translated or not

    Definition Classes
    GlobalAttrs
  59. lazy val type: Attr

    Permalink

    This attribute is used to define the type of the content linked to.

    This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as text/html, text/css, and so on. The common use of this attribute is to define the type of style sheet linked and the most common current value is text/css, which indicates a Cascading Style Sheet format. You can use tpe as an alias for this attribute so you don't have to backtick-escape this attribute.

    MDN

  60. lazy val value: Attr

    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

  61. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. lazy val widthA: Attr

    Permalink

    The width attribute specifies the width of an input element of type "image".

Inherited from GlobalAttrs[Builder, Output, FragT]

Inherited from Util[Builder, Output, FragT]

Inherited from LowPriUtil[Builder, Output, FragT]

Inherited from AnyRef

Inherited from Any

Ungrouped