wlxml: extending isInside/getParent/is to support tag name
[fnpeditor.git] / src / editor / modules / rng / documentSummary.js
1 define(function(require) {
2     
3 'use strict';
4
5 var $ = require('libs/jquery'),
6     _ = require('libs/underscore'),
7     template = require('libs/text!./documentSummary.html');
8
9
10 var view = {
11     dom: $('<div class="documentSummary"></div>'),
12     init: function(config) {
13         this.config = config;
14         this.template = _.template(template);
15     },
16     render: function(properties) {
17         this.dom.html(this.template({
18             title: this.config.title,
19             properties: this.config.properties,
20             propertyValues: properties
21         }));
22     },
23     setDraftField: function(value) {
24         this.dom.find('.draft').text(value);
25     }
26 };
27
28 return view;
29
30 });