govuk-frontend
    Preparing search index...

    Class PasswordInput

    Password input component

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    Password input default config

    PasswordInputConfig

    
    
    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

    • Internal Virtual

      configOverride

      Function which defines configuration overrides to prioritize properties from the root element's dataset.

      It should take a subset of configuration as input and return a new configuration object with properties that should be overridden based on the root element's dataset. A Symbol is used for indexing to prevent conflicts.

      Parameters

      • Optionalparam: Partial<PasswordInputConfig>

        Configuration object

      Returns Partial<PasswordInputConfig>

      return - Configuration object