render()

in lib/@uncharted/cards/src/components/readerContent/readerContent.js [30:59]


    render() {
        const metaDataFontSize = this._config['card.metadata.fontSize'];
        const metaDataTitleColor = this._config['card.metadata.title.color'];
        const metaDataTitleFontFamily = this._config['card.metadata.title.fontFamily'];
        const metaDataValueColor = this._config['card.metadata.value.color'];
        const metaDataValueFontFamily = this._config['card.metadata.value.fontFamily'];

        this.$element = $(readerContentTemplate(Object.assign({
            iconUrl: this._getIconUrl(),
            subtitleDelimiter: this._config.subtitleDelimiter,
            headerBackgroundColor: this._config['readerContent.headerBackgroundColor'],
            headerSourceLinkColor: this._config['readerContent.headerSourceLinkColor'],
            metaDataFontSize: metaDataFontSize,
            metaDataTitleColor: metaDataTitleColor,
            metaDataTitleFontFamily: metaDataTitleFontFamily,
            metaDataValueColor: metaDataValueColor,
            metaDataValueFontFamily: metaDataValueFontFamily,
        }, this.data)));
        this.$headerImageContainer = this.$element.find('.reader-content-header-image');
        if (this.headerImage.hasImages()) {
            this.$headerImageContainer.append(this.headerImage.render());
            if (!this._config['readerContent.cropImages']) {
                this.headerImage.fitImages();
            }
        } else {
            this.$element.addClass('no-header-image');
        }
        this._registerDomEvents();
        return this.$element;
    }