Home Reference Source Test Repository
import ArticleBodyComponent from 'rizzo-next/src/components/article_body/index.js'
public class | source

ArticleBodyComponent

Extends:

src/core/bane~Component → ArticleBodyComponent

Enhances the body of articles with a gallery and more

Member Summary

Public Members
public

gallery: *

public

Method Summary

Public Methods
public

Format the post date with moment.js and append it to the bottom of the article

public
public

Preload an image

public

Loads all the images in the body of the article

Public Members

public imageContainerSelector: string source

Public Methods

public formatAndPositionDate() source

Format the post date with moment.js and append it to the bottom of the article

public initialize() source

public loadImage(url: String): Promise source

Preload an image

Params:

NameTypeAttributeDescription
url String

Url of the image to load

Return:

Promise

A promise for when the image loads

public loadImages(): Promise source

Loads all the images in the body of the article

Return:

Promise

A promise for when all of the images have loaded