', {
class: 'row'
});
for(let graphKey of Object.keys(config.systemGraphs)){
rowElement.append(
$('
', {
class: ['col-xs-12', 'col-sm-4'].join(' ')
}).attr('data-graph', graphKey).append(
$('
', {
class: config.moduleHeadClass
}).append(
$('
', {
class: config.moduleHandlerClass
}),
$('', {
text: getInfoForGraph(graphKey, 'headline')
}),
$('', {
class: 'pull-right'
}).append(
$('', {
html: ''
})
)
),
$('
', {
class: config.systemGraphClass
})
)
);
}
moduleElement.append(rowElement);
// request graph data and store result promise globally
// -> moduleElement is not full rendered at this point
graphDataPromise = getGraphsData(moduleElement, systemData);
}
return moduleElement;
};
return {
config: config,
getModule: getModule,
initModule: initModule
};
});