textarea.ts 538 B

12345678910111213141516171819202122
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { FieldResolverModule } from '#shared/entities/object-attributes/types/resolver.ts'
  3. import FieldResolver from '../FieldResolver.ts'
  4. export class FieldResolverTextarea extends FieldResolver {
  5. fieldType = 'textarea'
  6. public fieldTypeAttributes() {
  7. return {
  8. props: {
  9. maxlength: this.attributeConfig.maxlength,
  10. },
  11. }
  12. }
  13. }
  14. export default <FieldResolverModule>{
  15. type: 'textarea',
  16. resolver: FieldResolverTextarea,
  17. }