In this namespace you will find classes and methods for handling resources.
Classes
- Data
A Data Resource class
- Link
A Resource class
- Script
A Resource class
- Stylesheet
A Resource class
Namespaces
- Link
In this namespace you will find classes and methods for links
.
Members
defaults
PropertiesName | Type | Description |
---|---|---|
document | Document | the document object into which the node is to be appended |
src/href | string | url to the corresponding resource |
query | string | defines the location where the resource is to be hooked into the dom. |
id | string | element attribute id |
title | string | element attribute title |
class | string | element attribute class |
timeout | int | timeout |
(static) instanceSymbol
Methods
available() → {Promise}
available()
you can check if a resource is available.With available()
you can check if a resource is available. This is the case when the tag is included and the resource is loaded.
- Type:
- Promise
connect() → {Monster.DOM.Resource}
This method appends the HTMLElement to the specified document. If the element has not yet been created, create()
is called implicitly.
throws {Error} target not found
- Type:
- Monster.
DOM. Resource
create() → {Monster.DOM.Resource}
This method is overridden by the special classes and creates the DOM object. This method is also called implicitly, if not yet done explicitly, by calling connect()
.
this method must be implemented by derived classes
- Type
- Error
- Type:
- Monster.
DOM. Resource
isConnected() → {boolean}
- Type:
- boolean
(static) getURLAttribute() → {string}
- Type:
- string