IPasswordFieldSlots

interface
Form & Input

Slots contract for <OrigamPasswordField>. Extends IFieldSlots and IInputSlots (minus default) with an info slot for the requirements popup body, a counter slot and a field slot to replace the native input.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

info
(data: { [key: string]: any }) => any
Replaces the default strength-requirements popup body. Receives the current requirements state as bindings.
counter
(data: { counter: string, max?: string | number, value: string | number }) => any
Replaces the character counter rendered inside the details slot.
field
(data: { id: string, isDisabled: boolean, isDirty: boolean, isValid: boolean | undefined, isReadonly: boolean }) => any
Replaces the default <input> element. Receives field state bindings.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom requirements popup via the info slot

html