This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathproperties-pane.js
More file actions
34 lines (34 loc) · 1.46 KB
/
properties-pane.js
File metadata and controls
34 lines (34 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ej2_base_1 = require("@syncfusion/ej2-base");
/**
* Represents properties pane.
*/
var PropertiesPane = (function () {
// tslint:disable-next-line:max-line-length
function PropertiesPane(docEditor, text, table, headerFooter, image, toc) {
var _this = this;
this.initializeProperitesPane = function () {
_this.element = ej2_base_1.createElement('div', { className: 'e-de-property-pane' });
_this.element.appendChild(_this.textProperties.element);
_this.element.appendChild(_this.tableProperties.element);
_this.element.appendChild(_this.headerFooterProperties.element);
_this.element.appendChild(_this.imageProperties.element);
_this.element.appendChild(_this.tocProperties.element);
_this.documentEditor.element.parentElement.appendChild(_this.element);
};
this.showPropertiesPane = function (isShow) {
_this.element.style.display = isShow ? 'block' : 'none';
_this.documentEditor.resize();
};
this.documentEditor = docEditor;
this.textProperties = text;
this.tableProperties = table;
this.imageProperties = image;
this.headerFooterProperties = headerFooter;
this.tocProperties = toc;
this.initializeProperitesPane();
}
return PropertiesPane;
}());
exports.PropertiesPane = PropertiesPane;