Files
ISA-Frontend/libs/ui/input-controls/src/lib/text-field/textarea.component.ts
Lorenz Hilpert e65085439e Enhance return process with checklist questions and related components.
-  **Feature**: Added checklist question type for return process
-  **Feature**: Implemented checklist question component
- 🛠️ **Refactor**: Updated return process service to handle checklist answers
- 📚 **Docs**: Added schemas for checklist answers and return details
- 🧪 **Test**: Updated tests for new checklist functionality
2025-04-14 16:13:44 +02:00

20 lines
515 B
TypeScript

import { Component, computed, contentChild, input } from '@angular/core';
import { NgControl } from '@angular/forms';
@Component({
selector: 'ui-textarea',
templateUrl: './textarea.component.html',
host: { '[class]': '["ui-textarea", controlEmptyClass()]' },
})
export class TextareaComponent {
label = input<string>();
ngControl = contentChild(NgControl);
controlEmptyClass = computed(() => {
return this.ngControl()?.value
? 'ui-textarea__not-empty'
: 'ui-textarea__empty';
});
}