ClassPasswordInput

Password input component

Hierarchy (view full)

Constructors

Properties

_$root: HTMLElement
$input: HTMLInputElement
$screenReaderStatusMessage: HTMLDivElement
$showHideButton: HTMLButtonElement
i18n: I18n
defaults: PasswordInputConfig = ...

Password input default config


elementType: (new () => Element) = HTMLElement
moduleName: string = 'govuk-password-input'

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

schema: Readonly<{
    properties: {
        i18n: {
            type: "object";
        };
    };
}> = ...

Password input 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