SYIDAX / DATA GRID

변경 이력 조회

편집의 변경 내역을 기록하고 조회합니다.

시작하기
변경 이력 조회샘플 주문 데이터
120 rows
Grid를 불러오는 중입니다…

옵션

아래 항목을 바꾸면 Grid와 코드에 바로 반영됩니다.

최근 결과

이 예제는 변경 이력이 켜져 있습니다. 수량 셀을 편집해 Enter로 확정하세요.

코드 보기
현재 미리보기

사용 가이드

#

주문 값이 언제 어떻게 바뀌었는지 나중에 확인할 수 있도록 편집 변경 내역을 기록하는 기능입니다.

직접 해보기

  1. 변경 만들기

    이 예제는 변경 이력이 켜져 있습니다. 수량 셀을 편집해 Enter로 확정하세요.

  2. 편집 결과 확인

    코드 보기 바로 위의 최근 결과에서 편집한 행과 변경 값을 확인하세요. 다음 작업을 하면 새 결과 1건으로 바뀝니다.

  3. 누적 이력 조회

    표 위 변경 이력 조회를 누르면 getAuditLog()의 결과를 확인할 수 있습니다. 앱에서는 필요한 조건으로 조회해 별도의 이력 화면에 표시할 수 있습니다.

확인할 결과

편집 전후 값 등 변경 내역을 추적하고 조회할 수 있습니다.

최근 결과 영역은 마지막 작업 1건을 보여 줍니다. 누적 감사 이력은 변경 이력 조회로 확인하고, 장기 보관은 앱의 서버 저장과 연결하세요.

알아두면 쉬운 용어

auditLog
편집 변경 이력을 기록하도록 켜는 설정입니다.
getAuditLog
Grid에 기록된 변경 내역을 조회하는 메서드입니다.

핵심 API 예시

등록된 Grid 요소를 grid로 참조하는 앱 코드입니다.

grid.auditLog = true;
console.log(await grid.getAuditLog());

API reference

#

나머지 속성2
Attribute / Property타입 / 기본값설명
auditLog
boolean기본값 falseenable the audit trail: a bounded, append-only log of row/cell/ selection mutations and undo/redo transitions. Read it via getAuditLog and subscribe to auditLogChanged. Off by default (zero overhead).
auditLogMax
number기본값 1000Cap on retained audit entries (oldest evict first).
이벤트1
이벤트detail 타입설명
{ entry: AuditEntry }Fires per entry appended to the audit trail (when `audit-log` is on).
메서드6
메서드 / 인수반환 타입설명
filter?: AuditLogFilter
Promise<AuditEntry[]>The audit trail entries (optionally filtered). Empty when off.
Promise<void>Clear the audit trail (seq keeps advancing; never reused).
filter?: AuditLogFilter
Promise<string>The audit trail as a CSV string (flat union columns, filterable).
filter?: AuditLogFilter, pretty?: boolean
Promise<string>The audit trail as a JSON array string (structure preserved).
fileName?: string, filter?: AuditLogFilter
Promise<void>Download the audit trail as a CSV file.
fileName?: string, filter?: AuditLogFilter
Promise<void>Download the audit trail as a JSON file.