devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
27 lines (26 loc) • 752 B
JavaScript
export class MailMergeOptions {
isEnabled;
viewMergedData;
activeRecordIndex;
recordCount;
allowInsertFields;
constructor() {
this.isEnabled = false;
this.viewMergedData = false;
this.activeRecordIndex = 0;
this.recordCount = 0;
this.allowInsertFields = false;
}
copyFrom(obj) {
this.isEnabled = obj.isEnabled;
this.viewMergedData = obj.viewMergedData;
this.activeRecordIndex = obj.activeRecordIndex;
this.recordCount = obj.recordCount;
this.allowInsertFields = obj.allowInsertFields;
}
clone() {
const result = new MailMergeOptions();
result.copyFrom(this);
return result;
}
}