index.ts 623 B

123456789101112131415161718
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { textarea as textareaDefinition } from '@formkit/inputs'
  3. import initializeFieldDefinition from '#shared/form/core/initializeFieldDefinition.ts'
  4. import defaultEmptyValueString from '#shared/form/features/defaultEmptyValueString.ts'
  5. import formUpdaterTrigger from '#shared/form/features/formUpdaterTrigger.ts'
  6. initializeFieldDefinition(textareaDefinition, {
  7. features: [formUpdaterTrigger('delayed'), defaultEmptyValueString],
  8. })
  9. // TODO resizing as prop?
  10. export default {
  11. fieldType: 'textarea',
  12. definition: textareaDefinition,
  13. }