Skip to content
Snippets Groups Projects
Select Git revision
  • ef8ef78c5168be8cbd886118caf298c828338fb4
  • master default protected
  • 1.31
  • 4.38.7
  • 4.38.6
  • 4.38.5
  • 4.38.4
  • 4.38.3
  • 4.38.2
  • 4.38.1
  • 4.38.0
  • 4.37.2
  • 4.37.1
  • 4.37.0
  • 4.36.0
  • 4.35.0
  • 4.34.1
  • 4.34.0
  • 4.33.1
  • 4.33.0
  • 4.32.2
  • 4.32.1
  • 4.32.0
23 results

stylesheet.mjs

Blame
  • stylesheet.mjs 1.17 KiB
    /**
     * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
     * Node module: @schukai/monster
     * This file is licensed under the AGPLv3 License.
     * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
     */
    
    import {extend} from "../../../data/extend.mjs";
    import {Link} from "../link.mjs";
    import {instanceSymbol} from '../../../constants.mjs';
    export {Stylesheet}
    
    /**
     * This class is used by the resource manager to embed external resources.
     *
     * @license AGPLv3
     * @since 1.25.0
     * @copyright schukai GmbH
     * @memberOf Monster.DOM.Resource
     * @summary A Resource class
     * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
     */
    class Stylesheet extends Link {
    
        /**
         * @property {string} rel {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel}
         */
        get defaults() {
            return extend({}, super.defaults, {
                rel: 'stylesheet'
            })
        }
    
        /**
         * This method is called by the `instanceof` operator.
         * @returns {symbol}
         * @since 2.1.0
         */
        static get [instanceSymbol]() {
            return Symbol.for("@schukai/monster/dom/resource/link/stylesheet")
        }
    
    
    }