Skip to content

Commit

Permalink
readme usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zolcsi committed Oct 25, 2024
1 parent b573ec9 commit ebda3f3
Show file tree
Hide file tree
Showing 4 changed files with 1,172 additions and 1,190 deletions.
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export class AppComponent {
src: '/img/image1.jpg'
},
{
src: 'https://picsum.photos/id/237/2000/3000',
thumbnail: 'https://picsum.photos/id/237/160/160',
src: 'https://picsum.photos/id/237/2000/3000',
thumbnail: 'https://picsum.photos/id/237/160/160',
}]
}
```
Expand All @@ -68,7 +68,17 @@ export class AppComponent {

### Input parameters

| Name | Required | Type | Default | Description |
|---------------|----------|---------------|---------|------------------------------------------|
| galleryItems | yes | GalleryItem[] | [ ] | Contains the list of images |
| thumbnailSize | no | number | 160 | The width/height of the thumbnails in px |
| Name | Required | Type | Default | Description |
|---------------|----------|---------------|---------------------------------------|----------------------------------------------|
| galleryItems | yes | GalleryItem[] | [ ] | Contains the list of images |
| emptyMessage | no | string | 'Empty gallery, no images provided.' | Message to show in case empty items provided |
| thumbnailSize | no | number | 160 | The width/height of the thumbnails in px |

### 3. When all parameters set

```html
<ngx-simple-gallery [galleryItems]="galleryItems"
[thumbnailSize]="65"
emptyMessage="Please provide some images">
</ngx-simple-gallery>
```
Loading

0 comments on commit ebda3f3

Please sign in to comment.