MouseEventAttrs

scalatags.generic.MouseEventAttrs
trait MouseEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

Mouse Events: triggered by a mouse, or similar user actions.

Attributes

Graph
Supertypes
trait Util[Builder, Output, FragT]
trait LowPriUtil[Builder, Output, FragT]
class Object
trait Matchable
class Any
Known subtypes
trait Attrs[Builder, Output, FragT]

Members list

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.

Attributes

Inherited from:
Util
Supertypes
trait Modifier[Builder]
class Object
trait Matchable
class Any

Inherited types

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

Attributes

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
 )

Attributes

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

Attributes

Inherited from:
Util
def frag(frags: Frag[Builder, FragT]*): Frag[Builder, FragT]

Attributes

Inherited from:
Util
def makeAbstractTypedTag[T <: Output](tag: String, void: Boolean, namespaceConfig: Namespace): ConcreteHtmlTag[T]

Attributes

Inherited from:
Util
def modifier(mods: Modifier[Builder]*): Modifier[Builder]

Attributes

Inherited from:
Util
def tag(s: String, void: Boolean): TypedTag[Builder, Output, FragT]

Attributes

Inherited from:
Util

Concrete fields

lazy val onclick: Attr

The click event is raised when the user clicks on an element. The click event will occur after the mousedown and mouseup events.

The click event is raised when the user clicks on an element. The click event will occur after the mousedown and mouseup events.

MDN

Attributes

lazy val ondblclick: Attr

The dblclick event is fired when a pointing device button (usually a mouse button) is clicked twice on a single element.

The dblclick event is fired when a pointing device button (usually a mouse button) is clicked twice on a single element.

MDN

Attributes

val ondrag: Attr

Script to be run when an element is dragged

Script to be run when an element is dragged

Attributes

lazy val ondragend: Attr

Script to be run at the end of a drag operation

Script to be run at the end of a drag operation

Attributes

lazy val ondragenter: Attr

Script to be run when an element has been dragged to a valid drop target

Script to be run when an element has been dragged to a valid drop target

Attributes

lazy val ondragleave: Attr

Script to be run when an element leaves a valid drop target

Script to be run when an element leaves a valid drop target

Attributes

lazy val ondragover: Attr

Script to be run when an element is being dragged over a valid drop target

Script to be run when an element is being dragged over a valid drop target

Attributes

lazy val ondragstart: Attr

Script to be run at the start of a drag operation

Script to be run at the start of a drag operation

Attributes

lazy val ondrop: Attr

Script to be run when dragged element is being dropped

Script to be run when dragged element is being dropped

Attributes

lazy val onmousedown: Attr

The mousedown event is raised when the user presses the mouse button.

The mousedown event is raised when the user presses the mouse button.

MDN

Attributes

lazy val onmousemove: Attr

The mousemove event is raised when the user moves the mouse.

The mousemove event is raised when the user moves the mouse.

MDN

Attributes

lazy val onmouseout: Attr

The mouseout event is raised when the mouse leaves an element (e.g, when the mouse moves off of an image in the web page, the mouseout event is raised for that image element).

The mouseout event is raised when the mouse leaves an element (e.g, when the mouse moves off of an image in the web page, the mouseout event is raised for that image element).

MDN

Attributes

lazy val onmouseover: Attr

The mouseover event is raised when the user moves the mouse over a particular element.

The mouseover event is raised when the user moves the mouse over a particular element.

MDN

Attributes

lazy val onmouseup: Attr

The mouseup event is raised when the user releases the mouse button.

The mouseup event is raised when the user releases the mouse button.

MDN

Attributes

lazy val onscroll: Attr

Specifies the function to be called when the window is scrolled.

Specifies the function to be called when the window is scrolled.

MDN

Attributes

lazy val onwheel: Attr

Fires when the mouse wheel rolls up or down over an element

Fires when the mouse wheel rolls up or down over an element

Attributes

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

Attributes

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.

Attributes

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

Attributes

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

Attributes

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.

Attributes

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

Attributes

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.

Attributes

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.

Attributes

Inherited from:
LowPriUtil