ITextareaFieldSlots
interface
Component Slots
Slot signatures for <OrigamTextareaField>. Extends field and input slots with a counter slot, a field override slot, and rich-mode toolbar replacement 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.
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.
- counter(data: { counter: string, max?: string | number, value: string | number }) => any
- Replace the counter chip rendered below the textarea.
- field(data: { id: string, isDisabled: boolean, isDirty: boolean, isValid: boolean | undefined, isReadonly: boolean }) => any
- Override the inner field wrapper with full control state access.
- toolbar(data: ITextareaToolbarSlotProps) => any
- Replace the rich-text toolbar entirely (rich mode only).
- 'toolbar-item'(data: { command: TTextareaToolbarCommand label: string icon: string isActive: boolean onClick: () => void }) => any
- Replace a single toolbar button while keeping the rest of the toolbar (rich mode only).
É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 counter slot on a rich textarea