ClassNotificationBanner

Notification Banner component

Hierarchy (view full)

Constructors

Properties

_$root: HTMLElement
defaults: NotificationBannerConfig = ...

Notification banner default config

elementType: (new () => Element) = HTMLElement
moduleName: string = 'govuk-notification-banner'

Name for the component used when initialising using data-module attributes.

schema: Readonly<{
    properties: {
        disableAutoFocus: {
            type: "boolean";
        };
    };
}> = ...

Notification banner config schema

Accessors

Methods

  • Override configuration

    Parameters

    • config: {
          [key: string]: unknown;
      }

      config to override

      • [key: string]: unknown

    Returns {
        [key: string]: unknown;
    }

    • overidden config
    • [key: string]: unknown