RealGrid2 API
Interface
Exportmemo

ExportMemo

A model containing settings related to validation results for cells

Signature:

export interface ExportMemo
 

Remarks

You can set the author of the memo using ExportMemo.author. You can set whether to export error messages for failed validation cells as memos using ExportMemo.validation, and you can define a callback function to be executed when printing the memo for each cell using ExportMemo.callback.

Example

const exportMemo: ExportMemo = {
author: "RealGrid",
validation: true, // Export error messages of cells that failed validation to a note
  callback: (grid, index, column, cellMemo) => {
    // Logic to execute for printing notes for each cell
  }
};

Properties

PropertyTypeDescription
authorstringIf the author setting CellMemo.author is applied to the note, it is ignored.
authorVisiblebooleanWhether to display the author in the memo CellMemo.authorVisible If applied, it is ignored.
callbackMemoCallbackCallback function to be executed when printing the memo for each cell
maxWidthnumberSet the maxWidth of the memo to be displayed in Excel (unit: px)
minWidthnumberSet the minWidth of the memo to be displayed in Excel (unit: px)
validationbooleanWhether to export error messages for cells that fail validation to the memo

Properties Desc

author

If the author setting CellMemo.author for the memo is applied, it is ignored.

Type - string


authorVisible

Whether to display the author to be written in the memo. If CellMemo.authorVisible is applied, it is ignored.

Type - boolean


callback

Callback function to be executed when each cell's memo is printed

Type - MemoCallback


maxWidth

Set the maxWidth of the note to be displayed in Excel (unit: px)

Type - number


minWidth

Set the minWidth of the note to be displayed in Excel (unit: px)

Type - number


validation

Whether to output error messages for cells that fail validation as memos

Type - boolean