global: Insert global attributes for the tag

Description Usage Arguments

Description

This helper function should be invoked to provide values for the namesake global argument, which is present in any function that generates an HTML tag.

Usage

1
2
3
4
global(style = NULL, title = NULL, lang = NULL, hidden = NULL,
  data = NULL, accesskey = NULL, contenteditable = NULL,
  contextmenu = NULL, dir = NULL, draggable = NULL, dropzone = NULL,
  spellcheck = NULL, translate = NULL)

Arguments

style

an inline CSS style for the element.

title

used for extra information about the element.

lang

the language for the element's content.

hidden

when TRUE, this states that the element is not yet, or perhaps no longer, relevant.

data

this stores custom data private to the page or animation.

accesskey

specifies a shortcut key to activate/focus an element.

contenteditable

can either be TRUE or FALSE and this specifies whether the content of an element is editable or not.

contextmenu

specifies a context menu for an element. The context menu appears when a user right-clicks on the element. The value of the contextmenu attribute is the id of the <menu> element to open.

dir

specifies the text direction of the element's content. Possible values are ltr (left to right) rtl (right to left), or auto (which leaves the browser to figure out the text direction).

draggable

specifies whether an element is draggable or not. This can either be TRUE, FALSE, or auto (which uses the default behavior of the browser).

dropzone

specifies whether the dragged data is copied, moved, or linked, when it is dropped on an element. This attribute can have either of these values: copy (dropped data will result in a copy of the dragged data), move (dropped data will result in the movement of the dragged data to the new location), and link (dropped data will result in a link to the original data).

spellcheck

specifies whether the element is to have its spelling and grammar checked or not. The following can be spellchecked: (1) text values in input elements (not passwords though), (2) text in <textarea> elements, and (3) text in editable elements. This can either be TRUE or FALSE.

translate

specifies whether the content of an element should be translated or not. This can either be yes or no.


rich-iannone/hyper documentation built on May 28, 2019, 4:02 p.m.