+
+ var selectView = new OpenSelectView({
+ value: row.getKey() || '',
+ inputTemplate: _.template('<div class="openInput rng-module-metadataEditor-metaItemKey" contentEditable="true"><%= value %></div>')({value: row.getKey() || '' }),
+ setInput: function(inputDOM, value) {
+ inputDOM.text(value);
+ row.setKey(value);
+ }
+ });
+ newRow.find('td:first').append(selectView.el);
+ metadataKeys.forEach(function(key) {
+ selectView.addItem(key);
+ });
+