Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.68
    Preparing search index...

    Interface TemplateSection

    A pluggable HTML section inserted into the article body.

    New content types (risk indicators, trend charts, pull quotes, etc.) can be added without modifying the core template โ€” just append a TemplateSection to the sections array in ArticleData.

    interface TemplateSection {
    ย ย ย ย id: string;
    ย ย ย ย html: string;
    ย ย ย ย className?: string;
    }
    Index

    Properties

    Properties

    id: string

    Unique identifier used as the HTML element id.

    html: string

    Pre-rendered HTML string for this section. Must be safe to embed directly (callers are responsible for escaping).

    className?: string

    Optional CSS class name(s) added to the wrapper <div>. Defaults to 'article-section' when omitted.