download

slinky.web.html.download$
object download extends Attr

area - This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource. See <a> for a full description of the download attribute. a - This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though / and </code> are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.

Notes:

  • This attribute only works for same-origin URLs.
  • This attribute can be used with blob: URLs and data: URLs to download content generated by JavaScript, such as pictures created in an image-editor Web app.
  • If the HTTP header Content-Disposition: gives a different filename than this attribute, the HTTP header takes priority over this attribute.
  • If Content-Disposition: is set to inline, Firefox prioritizes Content-Disposition, like the filename case, while Chrome prioritizes the download attribute.

Attributes

Graph
Supertypes
trait Attr
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

object tag extends TagElement

Attributes

Graph
Supertypes
class TagElement
class Object
trait Matchable
class Any
Self type
tag.type

Types

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]

Attributes

Inherited from:
Attr

Value members

Concrete methods

def :=(v: Boolean): AttrPair[_download_attr.type]
def :=(v: Option[Boolean]): OptionalAttrPair[_download_attr.type]

Implicits

Implicits

implicit def boolToPairaApplied(attrObj: download.type.this.type): AttrPair[tag.type]
implicit def boolToPairareaApplied(attrObj: download.type.this.type): AttrPair[tag.type]
implicit def boolToPairstarApplied(attrObj: download.type.this.type): AttrPair[tag.type]