Refactoring
[fnpeditor.git] / modules / documentCanvas / canvas / widgets.js
diff --git a/modules/documentCanvas/canvas/widgets.js b/modules/documentCanvas/canvas/widgets.js
new file mode 100644 (file)
index 0000000..9563785
--- /dev/null
@@ -0,0 +1,15 @@
+define([
+'libs/jquery-1.9.1.min'
+], function($) {
+    
+'use strict';
+
+return {
+    labelWidget: function(tag, klass) {
+        return $('<span>')
+            .addClass('canvas-widget canvas-widget-label')
+            .text(tag + (klass ? ' / ' + klass : ''));
+    }
+};
+
+});
\ No newline at end of file