PMA.UI Documentation by Pathomation

view/controls/pathomationAttribution.js

import { Control } from 'ol/control';

export
    /**
     * Displays the copyright attributions of slide, if any
     * @alias PathomationAttribution
     * @memberof PMA.UI.View.Controls
     * @param {object} opt_options Options to initialize the copyright attribution control
     * @param {string} [opt_options.className] Classname of copyright attribution
     * @param {string} [opt_options.html] HTML code of copyright attribution
     */
    class PathomationAttribution extends Control {
    constructor(opt_options) {
        var options = opt_options || {};

        var element = document.createElement('div');
        element.className = (options.className || "ol-attr") + ' ol-unselectable';
        element.innerHTML = options.html || "";

        super({
            element: element,
            target: options.target
        });
    }
}