new Fragments:ImageView()
Embodies an image view (an image in prismic.io can be defined with several different thumbnail sizes, each size is called a "view")
- Source:
Members
alt
the alt text for the ImageView
- Source:
copyright
the copyright for the ImageView
- Source:
height
the height of the ImageView
- Source:
url
the URL of the ImageView (useable as it, in a
tag in HTML, for instance)
- Source:
width
the width of the ImageView
- Source:
Methods
asHtml() → {string}
Turns the fragment into a useable HTML version of it.
If the native HTML code doesn't suit your design, this function is meant to be overriden.
- Source:
Returns:
- basic HTML code for the fragment
- Type
- string
asText() → {string}
Turns the fragment into a useable text version of it.
- Source:
Returns:
- basic text version of the fragment
- Type
- string