Class NotificationBanner

Notification Banner component

Preserve

Hierarchy

  • GOVUKFrontendComponent
    • NotificationBanner

Constructors

Properties

$module: HTMLElement
config: NotificationBannerConfig
defaults: NotificationBannerConfig = ...

Notification banner default config

See

NotificationBannerConfig

Constant

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

Type declaration

  • properties: {
        disableAutoFocus: {
            type: "boolean";
        };
    }
    • disableAutoFocus: {
          type: "boolean";
      }
      • type: "boolean"

Constant