Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super();
this._toolbar = new Toolbar()
.title("Dermatology")
;
this._propEditor = new PropertyEditor()
.show_settings(true)
;
}
private _tabRHS = new TabPanel();
private _splitData = new SplitPanel();
private _dataProperties: PropertyEditor = new PropertyEditor()
.show_settings(false)
.showFields(false)
;
private _preview = new DatasourceTable();
private _vizProperties: PropertyEditor = new PropertyEditor()
.show_settings(false)
.showFields(false)
;
private _paletteProperties: PropertyEditor = new PropertyEditor()
.show_settings(false)
.showFields(false)
;
private _stateProperties: PropertyEditor = new PropertyEditor()
.show_settings(false)
.showFields(false)
;
private _cloneEC: ElementContainer = new ElementContainer();
private _clone: Dashboard = new Dashboard(this._cloneEC).hideSingleTabs(true);
private _fileOpen;
constructor() {
super("horizontal");
}
clear() {
this._elementContainer.clear();
this.loadDashboard().then(() => {
this._elementContainer.refresh();
});
function App(path) {
var _this = _super.call(this) || this;
_this._editor = new codemirror_1.JSEditor()
.on("changes", function (changes) {
_this.changed(_this._editor);
});
_this._propEditor = new other_1.PropertyEditor();
_this._demo = new DemoWidget_js_1.DemoWidget()
.on("changed", function (widget) {
_this.changed(_this._demo);
});
_this._propEditor.monitor(function (id, newValue, oldValue, source) {
_this.changed(_this._propEditor);
});
window["cm_editor"] = _this._editor;
_this.addWidget(_this._demo, '<div>');
_this.addWidget(_this._propEditor, "Properties", "split-right", _this._demo);
_this.addWidget(_this._editor, "JavaScript", "split-bottom", _this._demo);
return _this;
}
App.prototype.load = function (fileName) {</div>