docs(image-loader): add "Dynamic image source" example

This commit is contained in:
Eric Liu 2024-02-24 13:36:33 -08:00 committed by metonym
commit c6af8bdafe
2 changed files with 32 additions and 1 deletions

View file

@ -43,4 +43,10 @@ Set `fadeIn` to `true` to fade in the image if successfully loaded.
In this example, a component reference is obtained to programmatically trigger the `loadImage` method.
<FileSource src="/framed/ImageLoader/ProgrammaticImageLoader" />
<FileSource src="/framed/ImageLoader/ProgrammaticImageLoader" />
## Dynamic image source
The same `ImageLoader` instance can be used to load different images.
<FileSource src="/framed/ImageLoader/DynamicImageLoader" />