mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
docs(image-loader): add "Dynamic image source" example
This commit is contained in:
parent
0f318aac77
commit
c6af8bdafe
2 changed files with 32 additions and 1 deletions
|
@ -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" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue