Nitroux.Types.GlobalAttributes (nitroux v0.3.3)

Link to this section Summary

Types

Provides a hint for generating a keyboard shortcut for the current element

Controls whether and how text input is automatically capitalized as it is entered/edited by the user

Indicates that an element should be focused on page load, or when the <dialog> that it is part of is displayed

A space-separated list of the case-sensitive classes of the element

Indicates if the element should be editable by the user

Indicates the directionality of the element's text

Indicates whether the element can be dragged, either with native browser behavior or the HTML Drag and Drop API.

Defines what action label (or icon) to present for the enter key on virtual keyboards

The exportparts global attribute allows you to select and style elements existing in nested shadow trees, by exporting their part names

Indicates that the browser should not render the contents of the element

Defines an identifier (ID) which must be unique in the whole document

indicating that the browser will ignore the element

hints at the type of data that might be entered by the user while editing the element or its contents

allows you to specify that a standard HTML element should behave like a defined custom built-in element

The itemid global attribute provides microdata in the form of a unique, global identifier of an item

The itemprop global attribute is used to add properties to an item

Properties that are not descendants of an element with the itemscope attribute can be associated with an item using the global attribute itemref

itemscope is a boolean global attribute that defines the scope of associated metadata

The global attribute itemtype specifies the URL of the vocabulary that will be used to define itemprop's (item properties) in the data structure

The lang global attribute helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user

The nonce global attribute is a content attribute defining a cryptographic nonce ("number used once") which can be used by Content Security Policy to determine whether or not a given fetch will be allowed to proceed for a given element

The part global attribute contains a space-separated list of the part names of the element

The slot global attribute assigns a slot in a shadow DOM shadow tree to an element: An element with a slot attribute is assigned to the slot created by the <slot> element whose name attribute's value matches that slot attribute's value

The spellcheck global attribute is an enumerated attribute that defines whether the element may be checked for spelling errors

The style global attribute contains CSS styling declarations to be applied to the element

t()

The tabindex global attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation

The title global attribute contains text representing advisory information related to the element it belongs to

The translate global attribute is an enumerated attribute that is used to specify whether an element's translatable attribute values and its Text node children should be translated when the page is localized, or whether to leave them unchanged

Link to this section Types

Specs

accesskey() :: String.t()

Provides a hint for generating a keyboard shortcut for the current element

Link to this type

autocapitalize()

Specs

autocapitalize() :: String.t()

Controls whether and how text input is automatically capitalized as it is entered/edited by the user

Specs

autofocus() :: bool()

Indicates that an element should be focused on page load, or when the <dialog> that it is part of is displayed

Specs

class() :: String.t()

A space-separated list of the case-sensitive classes of the element

Link to this type

contenteditable()

Specs

contenteditable() :: String.t()

Indicates if the element should be editable by the user

Specs

dir() :: String.t()

Indicates the directionality of the element's text

Specs

draggable() :: bool()

Indicates whether the element can be dragged, either with native browser behavior or the HTML Drag and Drop API.

Link to this type

enterkeyhint()

Specs

enterkeyhint() :: String.t()

Defines what action label (or icon) to present for the enter key on virtual keyboards

Link to this type

exportparts()

Specs

exportparts() :: String.t()

The exportparts global attribute allows you to select and style elements existing in nested shadow trees, by exporting their part names

Specs

hidden() :: String.t()

Indicates that the browser should not render the contents of the element

Specs

id() :: String.t()

Defines an identifier (ID) which must be unique in the whole document

Specs

inert() :: bool()

indicating that the browser will ignore the element

Specs

inputmode() :: String.t()

hints at the type of data that might be entered by the user while editing the element or its contents

Specs

is() :: String.t()

allows you to specify that a standard HTML element should behave like a defined custom built-in element

Specs

itemid() :: String.t()

The itemid global attribute provides microdata in the form of a unique, global identifier of an item

Specs

itemprop() :: String.t()

The itemprop global attribute is used to add properties to an item

Specs

itemref() :: String.t()

Properties that are not descendants of an element with the itemscope attribute can be associated with an item using the global attribute itemref

Specs

itemscope() :: String.t()

itemscope is a boolean global attribute that defines the scope of associated metadata

Specs

itemtype() :: String.t()

The global attribute itemtype specifies the URL of the vocabulary that will be used to define itemprop's (item properties) in the data structure

Specs

lang() :: String.t()

The lang global attribute helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user

Specs

nonce() :: String.t()

The nonce global attribute is a content attribute defining a cryptographic nonce ("number used once") which can be used by Content Security Policy to determine whether or not a given fetch will be allowed to proceed for a given element

Specs

part() :: String.t()

The part global attribute contains a space-separated list of the part names of the element

Specs

slot() :: String.t()

The slot global attribute assigns a slot in a shadow DOM shadow tree to an element: An element with a slot attribute is assigned to the slot created by the <slot> element whose name attribute's value matches that slot attribute's value

Link to this type

spellcheck()

Specs

spellcheck() :: String.t()

The spellcheck global attribute is an enumerated attribute that defines whether the element may be checked for spelling errors

Specs

style() :: String.t()

The style global attribute contains CSS styling declarations to be applied to the element

Specs

t() :: [
  accesskey: accesskey(),
  autocapitalize: autocapitalize(),
  autofocus: autofocus(),
  class: class(),
  contenteditable: contenteditable(),
  dir: dir(),
  draggable: draggable(),
  enterkeyhint: enterkeyhint(),
  exportparts: exportparts(),
  hidden: hidden(),
  id: id(),
  inert: inert(),
  inputmode: inputmode(),
  is: is(),
  itemid: itemid(),
  itemprop: itemprop(),
  itemref: itemref(),
  itemscope: itemscope(),
  itemtype: itemtype(),
  lang: lang(),
  nonce: nonce(),
  part: part(),
  slot: slot(),
  spellcheck: spellcheck(),
  style: style(),
  tabindex: tabindex(),
  title: title(),
  translate: translate()
]

Specs

tabindex() :: bool()

The tabindex global attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation

Specs

title() :: String.t()

The title global attribute contains text representing advisory information related to the element it belongs to

Specs

translate() :: bool()

The translate global attribute is an enumerated attribute that is used to specify whether an element's translatable attribute values and its Text node children should be translated when the page is localized, or whether to leave them unchanged