Appearance
Image Download
The image download button allows users to download images from website elements like charts, using the snapDOM library. It provides options for different formats and sizes. Use the class 'image-hidden' on elements that should not be included in the image.
There is also an ImageWrapper component that can be used to add margin around the downloaded element.
The Component
Usage
vue
<ImageBtn element-id="image" filename="chart" />
<ImageWrapper id="image">
<BarChart />
</ImageWrapper>Dependencies
- snapDOM library
ImageWrappercomponent