4 ], function($, wlxmlUtils) {
9 labelWidget: function(tag, klass) {
11 .addClass('canvas-widget canvas-widget-label')
12 .text(wlxmlUtils.getTagLabel(tag) + (klass ? ' / ' + wlxmlUtils.getClassLabel(klass) : ''));
15 footnoteHandler: function(clickHandler) {
16 var mydom = $('<span>')
17 .addClass('canvas-widget canvas-widget-footnote-handle')
18 .css('display', 'inline')
21 mydom.click(function(e) {
29 hideButton: function(clickHandler) {
30 var mydom = $('<span>x</span>')
31 .addClass('canvas-widget canvas-widget-hide-button');
32 mydom.click(function(e) {
39 commentAdnotation: function(node) {
41 DOM: $('<div>').addClass('canvas-widget canvas-widget-comment-adnotation'),
42 update: function(node) {
44 metadata = node.getMetadata(),
46 metadata.forEach(function(row) {
47 parts.push(row.getValue());
49 metadata.some(function(row) {
56 this.DOM.text(parts.join(', '));