Instance accessors
Public
Tag.prototype.attributes
Tag.prototype.attributes
The get
accessor returns the tag attributes if set, otherwise undefined
.
Returns
The return value is a tag attributes of an Attributes
if set, or undefined
.
Example usage
Tag.prototype.closingTag
Tag.prototype.closingTag
The get
accessor gets the closing tag of a generic type ClosingTag
.
Returns
The return value is a tag closing of a generic type ClosingTag
.
Example usage
Tag.prototype.name
Tag.prototype.name
The get
accessor gets the tag name without the wrap from the private property #name
.
Returns
The return value is a tag name of a generic type variables Name
.
Example usage
Tag.prototype.openingTag
Tag.prototype.openingTag
The get
accessor gets the opening tag with optional attributes.
Returns
The return value is an opening tag of a generic type OpeningTag
.
Example usage
Tag.prototype.tag
Tag.prototype.tag
The get
accessor gets the tag consists of the name, opening and closing of the wrap.
Returns
The return value is a tag of a generic type variables in order Opening
, Name
and Closing
on the template.
Example usage
Tag.prototype.wrapper
Tag.prototype.wrapper
The get
accessor gets the wrapper.
Returns
The return value is the Wrapper
instance.
Example usage
Tag.prototype.value
Tag.prototype.value
The get
accessor gets the tag without the attributes.
Returns
The return value is the tag of a generic type variables in order Opening
, Name
and Closing
on the template.
Example usage
[Symbol.toStringTag]
[Symbol.toStringTag]
The property, with the help of toStringTag
of Symbol, changes the default object tag to tag
for an instance of the Tag
.
Good to know: The property can be read by the typeOf()
function of the type package.
Example usage
Last updated