tao-test/app/taoQtiItem/views/js/qtiXmlRenderer/renderers/Include.js

16 lines
356 B
JavaScript
Raw Normal View History

2022-08-29 20:14:13 +02:00
define(['tpl!taoQtiItem/qtiXmlRenderer/tpl/include'], function(tpl){
return {
qtiClass : 'include',
template : tpl,
getData : function(xi, data){
var ns = xi.getNamespace();
if(ns && ns.name){
data.tag = ns.name + ':include';
}
return data;
}
};
});