AnchorElementAttrs

trait AnchorElementAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
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

class SeqNode[A](xs: Seq[A])(implicit ev: A => 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 download: Attr

Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:

Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:

  • Without a value, the browser will suggest a filename/extension, generated from various sources:
    • The Content-Disposition HTTP header
    • The final segment in the URL path
    • The media type (from the (Content-Type header, the start of a data: URL, or Blob.type for a blob: URL)
  • Defining a value suggests it as the filename. / and \ characters are converted to underscores _. Filesystems may forbid other characters in filenames, so browsers will adjust the suggested name if necessary.

MDN

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