SYIDAX / DATA GRID

셀 접근 제어

사용자 권한에 따라 셀을 가리거나 편집을 제한합니다.

시작하기
셀 접근 제어샘플 주문 데이터
120 rows
Grid를 불러오는 중입니다…
최근 결과

예를 들어 일반 담당자는 수량만 편집하고 관리자는 단가도 편집할 수 있도록 정합니다.

코드 보기
현재 미리보기

사용 가이드

#

같은 표를 보더라도 사용자 역할에 따라 어떤 셀은 읽기만 허용하고 어떤 셀은 편집하지 못하게 해야 할 때 사용합니다.

앱에서 연결하는 순서

  1. 역할별 허용 범위 정의

    예를 들어 일반 담당자는 수량만 편집하고 관리자는 단가도 편집할 수 있도록 정합니다.

  2. 접근 규칙 연결

    앱에서 사용자와 행·열 정보를 기준으로 셀 접근 규칙을 연결합니다. 표시, 편집, 복사·내보내기에서도 같은 기준이 유지되어야 합니다.

  3. 서로 다른 계정으로 확인

    앱에서 각 역할로 로그인해 읽기·편집·복사 결과를 확인하세요. 거절된 동작의 이유도 사용자에게 알려 줍니다.

확인할 결과

사용자 역할에 맞는 셀 표현과 편집 동작을 제공할 수 있습니다.

이 샘플에는 사용자별 권한이 연결되어 있지 않습니다. 클라이언트에서 값을 가리는 것은 서버 권한 검사를 대신하지 않으며 민감한 데이터는 서버 응답부터 제한하세요.

알아두면 쉬운 용어

RBAC
사용자의 역할에 따라 허용할 작업을 정하는 접근 제어 방식입니다.
마스킹
원래 값을 직접 보여 주지 않고 가려서 표시하는 방식입니다.

API reference

#

나머지 속성3
Attribute / Property타입 / 기본값설명
canReadCell
CanReadCellFn기본값 undefinedRBAC read policy. Return `false` from `canReadCell` to mask a cell's value: the grid shows `maskedCellValue` instead of the real value on the direct cell surfaces (body render, tree cells, tooltip, and a clipboard copy), while sort / filter / aggregation / formula keep reading the real value. Property-only; a policy that throws fails CLOSED (masks). Off by default (zero overhead). Export-pipeline masking lands on
maskedCellValue
string기본값 '•••'The placeholder shown for cells `canReadCell` denies.
canEditCell
CanEditCellFn기본값 undefinedRBAC write policy. Return `false` from `canEditCell` to LOCK a cell: the grid refuses to open an editor on it and never writes a value back (blocking a keyboard/click edit, a formula-bar commit, AND a paste). The write-side twin of `canReadCell`; the two are independent (a cell can be readable-but-locked or masked-but-editable). Structural read-only rules (`editable` flag, computed columns, sentinel rows) still apply first — a policy only locks a cell that would otherwise be editable. Property-only; a policy that throws fails CLOSED (locks). Off by default (zero overhead).