FormEventAttrs

trait FormEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

Form Events that are triggered by actions inside an HTML form. However, these events apply to almost all HTML elements but are most commonly used in form elements.

trait Util[Builder, Output, FragT]
trait LowPriUtil[Builder, Output, FragT]
class Object
trait Matchable
class Any
trait Attrs[Builder, Output, FragT]

Type members

Inherited classlikes

implicit class SeqNode[A](xs: Seq[A])(implicit ev: A => Modifier[Builder]) extends Modifier[Builder]

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.

Inherited from:
Util

Inherited types

type ConcreteHtmlTag[T <: Output] <: TypedTag[Builder, T, FragT]
Inherited from:
Util

Value members

Inherited methods

def attr(s: String, ns: Namespace, raw: Boolean): Attr

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
 )
Inherited from:
Util
def css(s: String): Style

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"
 )
Inherited from:
Util
def frag(frags: Frag[Builder, FragT]*): Frag[Builder, FragT]
Inherited from:
Util
def makeAbstractTypedTag[T <: Output](tag: String, void: Boolean, namespaceConfig: Namespace): ConcreteHtmlTag[T]
Inherited from:
Util
def modifier(mods: Modifier[Builder]*): Modifier[Builder]
Inherited from:
Util
def tag(s: String, void: Boolean): TypedTag[Builder, Output, FragT]
Inherited from:
Util

Concrete fields

lazy val onblur: Attr

The blur event is raised when an element loses focus.

The blur event is raised when an element loses focus.

MDN

lazy val onchange: Attr

The change event is fired for input, select, and textarea elements when a change to the element's value is committed by the user.

The change event is fired for input, select, and textarea elements when a change to the element's value is committed by the user.

MDN

Script to be run when a context menu is triggered

Script to be run when a context menu is triggered

lazy val onfocus: Attr

The focus event is raised when the user sets focus on the given element.

The focus event is raised when the user sets focus on the given element.

MDN

lazy val oninput: Attr

Script to be run when an element gets user input

Script to be run when an element gets user input

lazy val oninvalid: Attr

Script to be run when an element is invalid

Script to be run when an element is invalid

lazy val onreset: Attr

The reset event is fired when a form is reset.

The reset event is fired when a form is reset.

MDN

lazy val onsearch: Attr

Fires when the user writes something in a search field (for <input="search">)

Fires when the user writes something in a search field (for <input="search">)

lazy val onselect: Attr

The select event only fires when text inside a text input or textarea is selected. The event is fired after the text has been selected.

The select event only fires when text inside a text input or textarea is selected. The event is fired after the text has been selected.

MDN

lazy val onsubmit: Attr

The submit event is raised when the user clicks a submit button in a form ().

The submit event is raised when the user clicks a submit button in a form ().

MDN

lazy val selected: AttrPair[Builder, String]

Indicates a selected option in an option list of a element.

Implicits

Inherited implicits

implicit def ArrayFrag[A](xs: Array[A])(implicit ev: A => Frag[Builder, FragT]): Frag[Builder, FragT]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Inherited from:
LowPriUtil
implicit def ArrayNode[A](xs: Array[A])(implicit ev: A => Modifier[Builder]): SeqNode[A]

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.

Inherited from:
Util
implicit def GeneratorFrag[A](xs: Generator[A])(implicit ev: A => Frag[Builder, FragT]): Frag[Builder, FragT]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Inherited from:
LowPriUtil
implicit def OptionFrag[A](xs: Option[A])(implicit ev: A => Frag[Builder, FragT]): Frag[Builder, FragT]

Renders an Option of FragT into a single FragT

Renders an Option of FragT into a single FragT

Inherited from:
LowPriUtil
implicit def OptionNode[A](xs: Option[A])(implicit ev: A => Modifier[Builder]): SeqNode[A]

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.

Inherited from:
Util
implicit def SeqFrag[A](xs: Seq[A])(implicit ev: A => Frag[Builder, FragT]): Frag[Builder, FragT]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Inherited from:
LowPriUtil
final implicit def SeqNode[A](xs: Seq[A])(implicit ev: A => Modifier[Builder]): SeqNode[A]

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.

Inherited from:
Util
implicit def UnitFrag(u: Unit): Frag[Builder, FragT]

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

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

Inherited from:
LowPriUtil