demo shell (ng2)

basic angular2-based demo shell
This commit is contained in:
Denys Vuika
2016-04-06 14:35:46 +01:00
commit f9e1ad80a9
41 changed files with 1803 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
var widgets = (function (widgets, utils) {
widgets.row = {
create: createComponent,
name: 'row',
iconClass: 'fa fa-puzzle-piece',
category: 'Grid system'
};
function createComponent() {
var widget = document.createElement('div');
widget.classList.add('row', 'widget', 'widget-row');
widget.dataset.widgetId = utils.uid();
widget.appendChild(utils.col('col-md-12'));
return widget;
}
return widgets;
})(widgets || {}, widgetUtils);