-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: reaction details are now paginated
- Loading branch information
Showing
41 changed files
with
988 additions
and
385 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
docusaurus/docs/Angular/components/PaginatedListComponent.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
The `PaginatedListComponent` can display a list of arbitrary data with support for loading indicator and pagination. This is a utility component, you don't need to use it unless you're building a custom component. | ||
|
||
## Usage | ||
|
||
The paginated list component relies on data provided by the parent component. You can provide the HTML template for the list items. | ||
|
||
```html | ||
<stream-paginated-list | ||
[items]="<list of items to display>" | ||
[isLoading]="<set to true to display loading indicator>" | ||
[hasMore]="<whether or not the list has more pages to retrieve>" | ||
(loadMore)="<use this output to fetch the next page of items>" | ||
> | ||
<ng-template let-item="item" let-index="index" | ||
><div data-testid="test-item" [style.height]="height"> | ||
{{ index }}. {{ item }} | ||
</div></ng-template | ||
> | ||
</stream-user-list> | ||
``` | ||
|
||
## Customization | ||
|
||
You can provide the HTML template for the list items, see above example. | ||
|
||
[//]: # "Start of generated content" | ||
[//]: # "End of generated content" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The `UserListComponent` can display a list of Stream users with pagination. This can be useful if you want to build a user list in your application. | ||
|
||
## Usage | ||
|
||
The user list component relies on data provided by the parent component: | ||
|
||
```html | ||
<stream-user-list | ||
[users]="<list of users to display>" | ||
[isLoading]="<set to true to display loading indicator>" | ||
[hasMore]="<whether or not the list has more pages to retrieve>" | ||
(loadMore)="<use this output to fetch the next page of users>" | ||
></stream-user-list> | ||
``` | ||
|
||
## Customization | ||
|
||
The component is built on top of the [`PaginatedListComponent`](../../components/PaginatedListComponent.mdx), you can use that component to build your own user list component. | ||
|
||
[//]: # "Start of generated content" | ||
[//]: # "End of generated content" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.