@oat-sa/tao-item-runner-qti
Version:
TAO QTI Item Runner modules
19 lines (14 loc) • 625 B
JavaScript
import Element from 'taoQtiItem/qtiItem/core/Element';
import _ from 'lodash';
import rendererConfig from 'taoQtiItem/qtiItem/helper/rendererConfig';
var Stylesheet = Element.extend({
qtiClass: 'stylesheet',
render: function() {
var args = rendererConfig.getOptionsFromArguments(arguments),
renderer = args.renderer || this.getRenderer(),
defaultData = {};
defaultData.attributes = { href: renderer.resolveUrl(this.attr('href')) };
return this._super(_.merge(defaultData, args.data), args.placeholder, args.subclass, renderer);
}
});
export default Stylesheet;