Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Overview

The Custom Content component renders HTML defined in Hawksearch.

Selector

The selector for this component is <hawksearch-custom-content>.

Data Model

The following data model is exposed to the Handlebars template:

interface ContentType {
    id: number;
    campaignId: number;
    type: string;
    title: string;
    zone: string;
}
interface CustomContent extends ContentType {
    type: 'custom';
    content: string;
}

For more information, see Content Models.

Default Template

<div class="custom-content">
    {{html content}}
</div>
  • No labels