Skip to content

Commit

Permalink
Doc #3031: Image doc update (#3040)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jul 6, 2022
1 parent fc5d5a0 commit d704f0b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api-generator/components/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ const ImageEvents = [
name: 'onHide',
description: 'Triggered when the preview overlay is hidden.',
arguments: []
},
{
name: 'onError',
description: 'Triggered when image has an error loading.',
arguments: [
{
name: 'event',
type: 'object',
description: 'Browser event'
}
]
}
];

Expand Down
5 changes: 5 additions & 0 deletions components/doc/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ import { Image } from 'primereact/image';
<td>-</td>
<td>Triggered when the preview overlay is hidden.</td>
</tr>
<tr>
<td>onError</td>
<td>event: Browser event</td>
<td>Triggered when the image fails to load.</td>
</tr>
</tbody>
</table>
</div>
Expand Down

0 comments on commit d704f0b

Please sign in to comment.