MailMergeTemplate Interface
Captures template state and produces isolated merged workbooks without browser UI.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.
Members
Properties
| Property | Description |
|---|---|
| events | File lifecycle notifications for each save of the captured template. |
Methods
Examples
Pass the MailMergeTemplate value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';
function inspectMailMergeTemplateEvents(
mailMergeTemplate: Awaited<ReturnType<ServerSheetControl['workbook']['createMailMergeTemplate']>>,
) {
const value = mailMergeTemplate['events'];
console.log('MailMergeTemplate.events', value);
}