Skip to content

Commit f0da239

Browse files
didoodchyun
andauthored
Website - Update docs about @queryParams demo snippet for Pagination (#3308)
Co-authored-by: Dylan Hyun <[email protected]>
1 parent 56a9ff0 commit f0da239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/components/pagination/partials/code/how-to-use.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ If you want the Pagination to change the URL of the page directly (eg. updating
120120
/>
121121
```
122122

123-
where the `@queryFunction` function will be something like this:
123+
where the `@queryFunction` function will be something like this (this is just an example, you will have to adapt the code to how your routing and query parameters are handled, see a reference [in Cloud UI](https://github.com/hashicorp/cloud-ui/blob/f49947bab0422165804049a018a7198f2e8c97e3/engines/role-assignments/addon/components/page/list.gts#L254-L259) or [in Atlas](https://github.com/hashicorp/atlas/blob/d6f0feee5a603d16fb331e1d697d12191a9bc1a3/frontend/atlas/app/controllers/v2/organization/workspaces-beta.js#L62C3-L69C4)):
124124

125125
```javascript
126126
get demoQueryFunctionNumbered() {
@@ -251,7 +251,7 @@ If you want the Pagination to change the URL of the page directly (eg. updating
251251
/>
252252
```
253253

254-
where the `@queryFunction` function will be something like this:
254+
where the `@queryFunction` function will be something like this (this is just an example, you will have to adapt the code to how your routing and query parameters are handled, see a reference [in Cloud UI](https://github.com/hashicorp/cloud-ui/blob/f49947bab0422165804049a018a7198f2e8c97e3/hcp/app/components/page/projects/list.gjs#L149-L165) or [in Atlas](https://github.com/hashicorp/atlas/blob/75086ea986e1e15488486996a8d949c4bc68633c/frontend/atlas/app/controllers/v2/organization/settings/policies/index.js#L9-L13)):
255255

256256
```javascript
257257
get demoQueryFunctionCompact() {

0 commit comments

Comments
 (0)