data

slinky.web.html.data$
object data extends Tag with Attr

The HTML <data> element links a given content with a machine-readable translation. If the content is time- or date-related, the <time> element must be used. object - The address of the resource as a valid URL. At least one of data and type must be defined. a, abbr, address, area, article, aside, audio, b, base, bdi, bdo, big, blockquote, body, br, button, canvas, caption, cite, code, col, colgroup, data, datalist, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, head, header, hr, html, i, iframe, img, input, ins, kbd, keygen, label, legend, li, link, main, map, mark, menu, menuitem, meta, meter, nav, noscript, object, ol, optgroup, option, output, p, param, picture, pre, progress, q, rp, rt, ruby, s, samp, script, section, select, small, source, span, strong, style, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, title, tr, track, u, ul, var, video, wbr - Forms a class of attributes, called custom data attributes, that allow 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.

Attributes

Graph
Supertypes
trait Attr
trait Tag
class Object
trait Matchable
class Any
Self type
data.type

Members list

Concise view

Type members

Classlikes

final class WithDash(sub: String) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
object tag extends TagElement

Attributes

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

Types

type attrType = _data_attr.type
type tagType = tag.type

Inherited types

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

Attributes

Inherited from:
Attr

Value members

Concrete methods

def -(sub: String): WithDash
def :=(v: String): AttrPair[_data_attr.type]
def :=(v: Option[String]): OptionalAttrPair[_data_attr.type]
def apply(mods: TagMod[tag.type]*): WithAttrs[tagType]