Nitroux.Types.GlobalAttributes (nitroux v0.4.1)
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
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
Types
accesskey()
@type accesskey() :: String.t()
Provides a hint for generating a keyboard shortcut for the current element
autocapitalize()
@type autocapitalize() :: String.t()
Controls whether and how text input is automatically capitalized as it is entered/edited by the user
autofocus()
@type autofocus() :: bool()
Indicates that an element should be focused on page load, or when the <dialog> that it is part of is displayed
class()
@type class() :: String.t()
A space-separated list of the case-sensitive classes of the element
contenteditable()
@type contenteditable() :: String.t()
Indicates if the element should be editable by the user
dir()
@type dir() :: String.t()
Indicates the directionality of the element's text
draggable()
@type draggable() :: bool()
Indicates whether the element can be dragged, either with native browser behavior or the HTML Drag and Drop API.
enterkeyhint()
@type enterkeyhint() :: String.t()
Defines what action label (or icon) to present for the enter key on virtual keyboards
exportparts()
@type exportparts() :: String.t()
The exportparts global attribute allows you to select and style elements existing in nested shadow trees, by exporting their part names
id()
@type id() :: String.t()
Defines an identifier (ID) which must be unique in the whole document
inert()
@type inert() :: bool()
indicating that the browser will ignore the element
inputmode()
@type inputmode() :: String.t()
hints at the type of data that might be entered by the user while editing the element or its contents
is()
@type is() :: String.t()
allows you to specify that a standard HTML element should behave like a defined custom built-in element
itemid()
@type itemid() :: String.t()
The itemid global attribute provides microdata in the form of a unique, global identifier of an item
itemprop()
@type itemprop() :: String.t()
The itemprop global attribute is used to add properties to an item
itemref()
@type 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
itemscope()
@type itemscope() :: String.t()
itemscope is a boolean global attribute that defines the scope of associated metadata
itemtype()
@type 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
lang()
@type 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
nonce()
@type 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
part()
@type part() :: String.t()
The part global attribute contains a space-separated list of the part names of the element
slot()
@type 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
spellcheck()
@type spellcheck() :: String.t()
The spellcheck global attribute is an enumerated attribute that defines whether the element may be checked for spelling errors
style()
@type style() :: String.t()
The style global attribute contains CSS styling declarations to be applied to the element
@type 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() ]
tabindex()
@type 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
title()
@type title() :: String.t()
The title global attribute contains text representing advisory information related to the element it belongs to
translate()
@type 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