@umbraco-cms/backoffice
    Preparing search index...

    Interface UmbNotificationDefaultData

    The default data of notifications UmbNotificationDefaultData

    interface UmbNotificationDefaultData {
        headline?: string;
        htmlMessage?: string | TemplateResult;
        message: string;
        structuredList?: Record<string, unknown[]>;
        whitespace?: "pre" | "normal" | "pre-line" | "pre-wrap" | "nowrap";
    }

    Hierarchy (View Summary)

    Index

    Properties

    headline?: string
    htmlMessage?: string | TemplateResult

    A message rendered as HTML. Takes precedence over message when set.

    A string value is sanitized before rendering, so scripts and event handlers are stripped. A TemplateResult is rendered as-is — Lit escapes its bindings, so it is safe by construction unless you explicitly opt out with unsafeHTML.

    Do not interpolate user-controlled content into an HTML string: sanitization prevents script execution but not markup injection (e.g. links or images).

    message: string

    The notification message, rendered as plain text. Use UmbNotificationDefaultData.htmlMessage to render HTML.

    structuredList?: Record<string, unknown[]>

    Use UmbPeekErrorArgs instead. Scheduled for removal in Umbraco 19.

    whitespace?: "pre" | "normal" | "pre-line" | "pre-wrap" | "nowrap"