@easyquery/core
Version:
EasyQuery.JS core modules
30 lines • 922 B
JavaScript
import { DataType } from '../types/data_type';
import { EditorTag } from '../types/editor_tag';
var ValueEditor = /** @class */ (function () {
function ValueEditor() {
this.id = "";
this.tag = EditorTag.Unknown;
this.resType = DataType.Unknown;
this.defValue = "";
}
ValueEditor.prototype.loadFromData = function (data) {
if (data) {
this.id = data.id;
this.tag = data.tag;
this.defValue = data.defval;
this.resType = data.rtype;
if (data.subType) {
this.resType = data.subType;
}
if (data.name) {
this.name = data.name;
}
if (data.sql) {
this.sql = data.sql;
}
}
};
return ValueEditor;
}());
export { ValueEditor };
//# sourceMappingURL=value_editor.js.map