the node to wrap
the classname(s) to add
this
the contents to append
this
this
the name of the attribute to get (nonempty string)
the value of the attribute specified (or null
if that attribute hasn’t been set)
the name of the attribute to set (nonempty string)
the value to assign to the attribute, or null
to remove it
this
the name of the attribute to set (nonempty string)
the function to call when assigning a value to the attribute
optionally pass in another object to use as this
inside the given function
this
an object with ValueType type values
this
the value of the class
attribute, or null
if it had not been set
the value to set for the class
attribute, or null
to remove it
this
the function to call when assigning a value to the attribute
optionally pass in another object to use as this
inside the given function
this
this
If the key is a string and the value is not provided (or undefined
),
then this method returns the string value of the data- attribute identified by the key.
If the attribute exists but is a boolean attribute, the empty string ''
is returned.
If no such attribute exists, then null
is returned.
If the key is ''
, this method throws an error.
the suffix of the [data-*]
attribute to get (nonempty string)
the value of the attribute specified (or null
if that attribute hasn’t been set)
If the key is a string and the value is a non-null ValueType type, then the data- attribute will be set (or modified) with the result of the given value.
If the key is a string and the value is null,
then the data- attribute identified by the key is removed from this element.
the suffix of the [data-*]
attribute to set (nonempty string)
the value to assign to the attribute, or null
to remove it
this
If the key is a string and the value is a ValueFunction type, then the data- attribute will be set (or modified) with the result of the given function.
the suffix of the [data-*]
attribute to set (nonempty string)
the function to call when assigning a value to the attribute
optionally pass in another object to use as this
inside the given function
this
If an object is provided as the key, then no argument may be provided as the value.
The object’s keys must be in camelCase format, as if each key were passed separately.
The object must have values of the ValueType type;
thus for each key-value pair in the object, this method assigns corresponding
data- attributes. You may use this method with a single object argument to set and/or remove
multiple attributes (using null
to remove).
If the key is {}
or null
, this method does nothing and returns this
.
an object with ValueType type values
this
the value of the attribute, or null
if it hasn’t been set
the value to set, or null
to remove
this
the function to call when setting the value
optionally pass in another object to use as this
inside the given function
this
this
any function that takes 0 arguments and returns undefined
(or does not have a return statement)
this
the value of the attribute, or null
if it hasn’t been set
the value to set, or null
to remove
this
the function to call when setting the value
optionally pass in another object to use as this
inside the given function
this
the value of the id
attribute, or null
if it had not been set
the value to set for the id
attribute, or null
to remove it
this
the function to call when assigning a value to the attribute
optionally pass in another object to use as this
inside the given function
this
the innerHTML
of this element
the html to set
this
the value of the attribute, or null
if it hasn’t been set
the value to set, or null
to remove
this
the function to call when setting the value
optionally pass in another object to use as this
inside the given function
this
the outerHTML
of this element
the html to set
this
the contents to prepend
this
classname(s) to remove
this
the segment of this element’s [class]
attribute value to remove
the string with which to replace the removed segment
this
this
If the key is a string and the value is not provided (or undefined
),
then this method returns the string value of the CSS property identified by the key.
If no such property exists, then null
is returned.
(Note that css properties default to the unset
value---either inherit
or initial
,
depending on whether the property is inherited or not.)
If the key is ''
, this method throws an error.
the name of the css property to get (nonempty string)
the value of the property specified (or null
if that property hasn’t been set)
If the key is a string and the value is a non-null ValueType type,
except for the empty string ''
,
then the CSS property will be set (or modified) with the result of the given value.
If the key is a string and the value is null
or the empty string ''
,
then the CSS property identified by the key is removed from this element.
the name of the css property to set (nonempty string)
the value to assign to the property, or null
or ''
to remove it
this
If the key is a string and the value is a ValueFunction type, then the CSS property will be set (or modified) with the result of the given function.
the name of the css property to set (nonempty string)
the function to call when assigning a value to the property
optionally pass in another object to use as this
inside the given function
this
If an object is provided as the key, then no argument may be provided as the value.
The object must have values of the ValueType type;
thus for each key-value pair in the object, this method assigns corresponding
CSS properties. You may use this method with a single object argument to set and/or remove
multiple properties (using null
to remove).
If the key is {}
or null
, this method does nothing and returns this
.
an object with ValueType type values
this
the value of the attribute, or null
if it hasn’t been set
the value to set, or null
to remove
this
the function to call when setting the value
optionally pass in another object to use as this
inside the given function
this
the textContent
of this node
the content to set
this
the value of the attribute, or null
if it hasn’t been set
the value to set, or null
to remove
this
the function to call when setting the value
optionally pass in another object to use as this
inside the given function
this
this
Generated using TypeDoc
Wrapper for HTML
li
element.https://www.w3.org/TR/html52/grouping-content.html#htmllielement