ResourceManager

A Resource class

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

Exported

ResourceManager

Derived from

Base

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 Base.

Option
Type
Default
Description
string
baseurl

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 Base.

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 Base.

Constructor

constructor(options)
Parameters
  • options {object}: options
throw {Error} unsupported document type

Behavioral methods

addData(url,options)
Parameters
  • url {string|url}: url
  • options {[object|undefined}: options
Returns
  • {Monster.DOM.ResourceManager}
Add Data Tag
addScript(url,options)
Parameters
  • url {string|url}: url
  • options {[object|undefined}: options
Returns
  • {Monster.DOM.ResourceManager}
Add a script
addStylesheet(url,options)
Parameters
  • url {string|url}: url
  • options {[object|undefined}: options
Returns
  • {Monster.DOM.ResourceManager}
Add Stylesheet

Structural methods

getBaseURL()
getOption(key)
Parameters
  • key

Other methods

available()
Returns
  • {Promise}
Throws
  • {Error} unsupported resource definition
Check if available
connect()
Returns
  • {Monster.DOM.ResourceManager}
Throws
  • {Error} unsupported resource definition
Append Tags to DOM
internalDefaults()

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.