IFieldSlots

interface
Slots

Slot signatures for OrigamField — default slot for the inner input element, plus label, floating label, prefix, suffix and loader slots.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

default
(props: { class?: string | Array<string> } & IFieldDefaultSlotProps) => any
Default slot for the inner native input; receives IFieldDefaultSlotProps plus an optional class override.
loader
() => any
Custom loader content shown when the field is in a loading state.
label
(props: ILabelProps) => any
Custom static label content.
floatingLabel
(props: ILabelProps) => any
Custom floating label content.
prefix
() => any
Custom prefix content rendered inside the field before the input.
suffix
() => any
Custom suffix content rendered inside the field after the input.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Custom label and prefix slots

vue