> For the complete documentation index, see [llms.txt](https://docs.coreway.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coreway.com/coreway-table/dashboard/custom-page/view-widget.md).

# 視圖組件

### 1. 組件介紹

自定義頁面可以直接嵌入工作表，或表單下的單個視圖，可把統計圖和重要的明細數據一起展現，便於對比查看。

### 2. 如何添加視圖

#### 2.1 進入自定義頁面的編輯頁面

![進入編輯頁面](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FkEqQvwp4lpBWN5ZutDPi%2Fpage-view-1.png?alt=media)

#### 2.2 添加一個視圖

![添加視圖](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2F3ksiPE7DE0WjrPwWnfta%2Fpage-view-2.png?alt=media)

#### 2.3 選擇需要添加的工作表和視圖

設置組件名稱（歷史項目評價），工作表選擇【發起評價問卷 - HR】，視圖選擇【全部】。

![選擇工作表和視圖](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FlkcnDfLbEMld7rGPCjo8%2Fpage-view-3.png?alt=media)

#### 2.4 進一步配置視圖設置

![視圖設置](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FK5yam2mggj6PFdY02rb0%2Fpage-view-4.png?alt=media)

1. **數據展示數量：** 可以配置視圖內顯示多少條數據，如果為空，預設顯示全部；
2. **允許新建記錄：** 預設為允許新建記錄，如果不允許人員新建記錄，可在此取消勾選；
3. **搜索記錄：** 預設為允許搜索記錄，如果數據量較少，可將此選項關閉；
4. **打開視圖：** 如果關閉，則不能透過點擊跳轉到相應的工作表視圖頁面進行查看。

#### 2.5 保存後，即可看到圖表

![保存後查看視圖](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2F9APKVR8tLl8wPcjLyRvj%2Fpage-view-5.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coreway.com/coreway-table/dashboard/custom-page/view-widget.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
