8000 feat: add batch expand/collapse all tree nodes by PoorShawn · Pull Request #4033 · VisActor/VTable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add batch expand/collapse all tree nodes #4033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,44 @@ The pixelRatio can be obtained directly from the instance's pixelRatio property.
/\*_ Set the canvas pixel ratio _/
setPixelRatio: (pixelRatio: number) => void;

````

## expandAllTreeNode(Function)

Expand all tree nodes (including headers and data rows).

**ListTable Proprietary**

```ts
/**
* Expand all tree nodes (including headers and data rows).
*/
expandAllTreeNode(): void
````

Usage:

```ts
// Expand all nodes
tableInstance.expandAllTreeNode();
```

## collapseAllTreeNode(Function)

Collapse all tree nodes (including headers and data rows).

**ListTable Proprietary**

```ts
/**
* Collapse all tree nodes (including headers and data rows).
*/
collapseAllTreeNode(): void
```

Usage:

```ts
// Collapse all nodes
tableInstance.collapseAllTreeNode();
```
120 changes: 120 additions & 0 deletions docs/assets/api/zh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -1468,3 +1468,123 @@ setLoadingHierarchyState: (col: number, row: number) => void;
/** 设置画布的像素比 */
setPixelRatio: (pixelRatio: number) => void;
```

## expandAllTreeNode(Function)

展开所有树形节点(包括表头和数据行)。

**ListTable 专有**

```ts
/**
* 展开所有树形节点(包括表头和数据行)。
*/
expandAllTreeNode(): void
```

使用:

```ts
// 展开所有节点
tableInstance.expandAllTreeNode();
```

## collapseAllTreeNode(Function)

折叠所有树形节点(包括表头和数据行)。

**ListTable 专有**

```ts
/**
* 折叠所有树形节点(包括表头和数据行)。
*/
collapseAllTreeNode(): void
```

使用:

```ts
// 折叠所有节点
tableInstance.collapseAllTreeNode();
```

## expandAllForRowTree(Function)

展开所有行表头树的节点。

**PivotTable 专有**

```ts
/**
* 展开行表头树的所有节点。
*/
expandAllForRowTree(): void
```

使用:

```ts
// 展开行表头树的所有节点
tableInstance.expandAllForRowTree();
```

## collapseAllForRowTree(Function)

折叠所有行表头树的节点。

**PivotTable 专有**

```ts
/**
* 折叠行表头树的所有节点
*/
collapseAllForRowTree(): void
```

使用:

```ts
// 折叠行表头树的所有节点
tableInstance.collapseAllForRowTree();
```

## expandAllForColumnTree(Function)

展开所有列表头树的节点。

**PivotTable 专有**

```ts
/**
* 展开列表头树的所有节点
*/
expandAllForColumnTree(): void
```

使用:

```ts
// 展开列表头树的所有节点
tableInstance.expandAllForColumnTree();
```

## collapseAllForColumnTree(Function)

折叠所有行表头树的节点。

**PivotTable 专有**

```ts
/**
* 折叠列表头树的所有节点
*/
collapseAllForColumnTree(): void
```

使用:

```ts
// 折叠列表头树的所有节点
tableInstance.collapseAllForColumnTree();
```
Loading
Loading
0