Skip to content

Latest commit

 

History

History

pos-image

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

pos-image

Overview

Tries fetch an image with the solid authentication, and can visualize http errors like 403 or 404 if this fails. Falls back to classic on network errors like CORS. Renders a normal link if even this fails.

Properties

Property Attribute Description Type Default
alt alt string undefined
src src string undefined

Events

Event Description Type
pod-os:init CustomEvent<any>
pod-os:resource-loaded Indicates that the resource given in src property has been loaded. CustomEvent<string>

CSS Custom Properties

Name Description
--border-radius Border radius of the image
--height Height of the image
--max-height Maximum height of the image
--max-width Maximum width of the image
--object-fit CSS object-fit of the image
--width Width of the image

Dependencies

Used by

Depends on

  • ion-skeleton-text
  • ion-icon

Graph

graph TD;
  pos-image --> ion-skeleton-text
  pos-image --> ion-icon
  pos-app-image-viewer --> pos-image
  pos-picture --> pos-image
  style pos-image fill:#f9f,stroke:#333,stroke-width:4px
Loading

Built with StencilJS