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

12 lines
404 B
JavaScript
Raw Normal View History

2022-08-29 20:14:13 +02:00
define(['tpl!taoQtiItem/qtiXmlRenderer/tpl/element', 'lodash'], function(tpl, _){
return {
qtiClass : 'rubricBlock',
template : tpl,
getData : function(rubricBlock, data){
var newData = {
view : data.attributes.view ? _.values(data.attributes.view).join(' ') : ''
};
return _.merge(data || {}, newData);
}
};
});