@cnbritain/wc-common-imagedeprecated

Component used to display images. Uses custom filter get_image_srcset to generate srcset sizes from a crop list.

Usage no npm install needed!

<script type="module">
  import cnbritainWcCommonImage from 'https://cdn.skypack.dev/@cnbritain/wc-common-image';
</script>

README

common-image

Component used to display images. Uses custom filter get_image_srcset to generate srcset sizes from a crop list.

JS Settings

common-image

common-image.init()

Initialises the loading of images

Kind: static method of common-image

test2

test2~yes() ⇒ String

Returns yes

Kind: inner method of test2
Returns: String - Yes

demo

  1. npm install
  2. npm run sass
  3. npm run js
  4. cd demo
  5. virtualenv .
  6. source bin/activate
  7. pip install -r requirements.txt
  8. python demo.py