RealGrid2 API
Interface
Exportmemo

ExportMemo

셀에 대한 유효성 검사 결과와 관련된 설정을 포함하는 모델

Signature:

export interface ExportMemo 

Remarks

ExportMemo.author을 사용하여 메모의 작성자를 설정할 수 있다. ExportMemo.validation을 사용하여 유효성 검사 실패 셀의 오류 메시지를 메모로 내보낼지 여부를 설정하고, ExportMemo.callback을 사용하여 각 셀의 메모를 출력할 때 실행할 콜백 함수를 정의할 수 있다.

Example

const exportMemo: ExportMemo = {
  author: "RealGrid",
  validation: true, // 유효성 검사 실패한 셀들의 오류 메시지를 노트로 내보내기
  callback: (grid, index, column, cellMemo) => {
    // 각 셀의 메모 출력을 위해 실행 할 로직
  }
};

Properties

PropertyTypeDescription
authorstring메모에 작성자 설정 CellMemo.author가 적용되어 있다면 무시된다.
authorVisibleboolean메모에 작성될 작성자 표시 여부 CellMemo.authorVisible이 적용되어 있다면 무시된다.
callbackMemoCallback각 셀의 메모 출력 시 실행할 콜백 함수
maxWidthnumber엑셀에 표시될 메모의 maxWidth 설정 (단위: px)
minWidthnumber엑셀에 표시될 메모의 minWidth 설정 (단위: px)
validationboolean유효성 검사에 실패한 셀들의 오류 메시지를 메모로 내보낼지 여부

Properties Desc

author

메모에 작성자 설정 CellMemo.author가 적용되어 있다면 무시된다.

Type - string


authorVisible

메모에 작성될 작성자 표시 여부 CellMemo.authorVisible이 적용되어 있다면 무시된다.

Type - boolean


callback

각 셀의 메모 출력 시 실행할 콜백 함수

Type - MemoCallback


maxWidth

엑셀에 표시될 메모의 maxWidth 설정 (단위: px)

Type - number


minWidth

엑셀에 표시될 메모의 minWidth 설정 (단위: px)

Type - number


validation

유효성 검사에 실패한 셀들의 오류 메시지를 메모로 내보낼지 여부

Type - boolean