@noraent/nora-datagrid 1.1.0-beta.32 → 1.1.0-beta.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/buildPackage.json +1 -1
- package/dist/common/rows/treeData.d.ts +1 -0
- package/dist/components/Selection.test.d.ts +1 -0
- package/dist/nora_datagrid.cjs.js +3 -3
- package/dist/nora_datagrid.es.js +86 -10
- package/dist/types/dataGridProps.d.ts +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -234,6 +234,9 @@ const rows = [
|
|
|
234
234
|
|
|
235
235
|
`groupDefaultExpanded`는 기본으로 펼칠 계층 수이며 `-1`은 전체 펼침입니다. Managed row drag는 정렬이 적용되지 않은 클라이언트 데이터에서 활성화됩니다. `isRowValidDropPosition`으로 업무 규칙에 맞지 않는 drop을 차단할 수 있습니다.
|
|
236
236
|
펼쳐진 그룹의 상위 행은 세로 스크롤 중 컬럼 헤더 아래에 고정됩니다. 이 동작이 필요하지 않으면 `suppressGroupRowsSticky`를 `true`로 설정합니다.
|
|
237
|
+
행 펼침 상태는 `gridRef.current.isRowExpanded(rowId)`로 확인하고, `setRowExpanded` 또는 `toggleRowExpanded`로 변경할 수 있습니다.
|
|
238
|
+
행을 추가한 직후 입력을 시작하려면 `gridRef.current.startCellEditMode({ id: rowId, field: "name" })`처럼 행 ID와 컬럼을 지정합니다.
|
|
239
|
+
`selectionMode="single"`에서 선택된 행을 다시 눌러도 선택을 유지하려면 `allowUnselect={false}`를 지정합니다. 기본값은 `true`입니다.
|
|
237
240
|
|
|
238
241
|
참고 레퍼런스
|
|
239
242
|
|
package/dist/buildPackage.json
CHANGED
|
@@ -17,4 +17,5 @@ interface BuildTreeRowModelOptions {
|
|
|
17
17
|
export declare function rowIdToKey(id: GridRowId): string;
|
|
18
18
|
export declare function buildTreeRowModel(sourceRows: DataGridPrivateDataSourceModel[], options: BuildTreeRowModelOptions): TreeRowModel;
|
|
19
19
|
export declare function moveTreeRow(model: TreeRowModel, sourceId: GridRowId, targetId: GridRowId, position: TreeDropPosition, parentIdField: string, getRowId: (row: DataGridPrivateDataSourceModel) => GridRowId): DataGridPrivateDataSourceModel[] | null;
|
|
20
|
+
export declare function insertTreeRow<R extends Record<string, unknown>>(sourceRows: R[], targetId: GridRowId, newRow: R, position: "inside" | "after", parentIdField: string, getRowId: (row: R) => GridRowId): R[] | null;
|
|
20
21
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|