Use Mindmap widget (which, OK, doesn't exist yet).
authorMike Taylor <mike@indexdata.com>
Thu, 22 May 2014 13:34:43 +0000 (14:34 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 22 May 2014 13:34:43 +0000 (14:34 +0100)
examples/htdocs/mkws-widget-credo.js

index d0cbfe2..d50f2c3 100644 (file)
@@ -35,7 +35,7 @@ mkws.registerWidgetType('Credo', function() {
 
   s.push('<td class="side">');
   s.push(section('mindmap', 'Create a Mind Map for ### title',
-                 '### Is there a way to make a mind-map?'));
+                 this.subwidget('Mindmap', { _team: 'main', facet: 'subject' })));
   s.push(section('topics', 'Related Topics',
                  this.subwidget('Facet', { _team: 'main', facet: 'subject' })));
   s.push('</td>');
@@ -77,3 +77,8 @@ mkws.registerWidgetType('Credo', function() {
     return s.join('');
   }
 });
+
+
+mkws.registerWidgetType('Mindmap', function() {
+  this.node.html("### We do not yet have a Mindmap widget");
+});