Link

A Resource class

Import
the javascript logo
import { Link } from "@schukai/monster/source/dom/resource/link.mjs";
Source
the git logo
Package
the npm logo
Since
1.25.0

Exported

Link

Derived from

Resource

Options

The Options listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Options from these parent classes. If you cannot find a specific Options in this list, we recommend consulting the documentation of the Resource.

Option
Type
Default
Description
as
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as}
crossOrigin
string
anonymous
er.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-crossorigin}
boolean
disabled
href
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-href}
hreflang
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-hreflang}
imagesizes
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-imagesizes}
imagesrcset
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-imagesrcset}
integrity
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-integrity}
media
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-media}
prefetch
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-prefetch}
referrerpolicy
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-referrerpolicy}
rel
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel}
type
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-type}
sizes
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-sizes}
nonce
string
undefined
{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-nonce}

Properties

The Properties listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Properties from these parent classes. If you cannot find a specific Properties in this list, we recommend consulting the documentation of the Resource.

Methods

The methods listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits methods from these parent classes. If you cannot find a specific method in this list, we recommend consulting the documentation of the Resource.

Behavioral methods

create()
Returns
  • {Monster.DOM.Resource.Link}

Static methods

[instanceSymbol]()2.1.0
Returns
  • {symbol}
This method is called by the instanceof operator.
getURLAttribute()
Returns
  • {string}

Events

This component does not fire any public events. It may fire events that are inherited from its parent classes.

The current width of the area is too small to display the content correctly.