SITWebComponents

My personal collection of Web Components

View on GitHub

SebastiansIT select-image element

This web component is part of my personal collection SITWebComponents.

It allows you to select a image file from your local storage. The selected image is shown and can be craped as a data URL via Javascript.

Examples

You can see some examples as part of the demo page.

Documentation

  1. <sit-select-image>
  2. SelectImageElement
  3. ShadowDOM

Prerequisite

To use this element the user agent must have support for…

The most features listet here can transpiled to older javascript features or can be simulated with polyfills. But this is a Job for you.

To style the shadow DOM support for addidional features is needed:

For more information about styling see my documentation.

js-standard-style