source: bus-n-go-pavel-216049/bus-n-go-frontend/src/app/components/input-field/input-field.component.ts@ bfb90dd

Last change on this file since bfb90dd was baf4cc4, checked in by ppaunovski <paunovskipavel@…>, 3 months ago

split group project and individual project into two separate folders

  • Property mode set to 100644
File size: 801 bytes
Line 
1import {Component, EventEmitter, Input, Output} from '@angular/core';
2
3@Component({
4 selector: 'app-input-field',
5 standalone: true,
6 imports: [],
7 templateUrl: './input-field.component.html',
8 styleUrl: './input-field.component.css'
9})
10export class InputFieldComponent {
11 @Input() name: string | undefined;
12 @Input() type: string | undefined;
13 @Input() placeholder: string | undefined;
14 @Input() id: string | undefined;
15 @Input() customClass: string | undefined;
16 @Input() required: boolean | undefined;
17 @Input() autocomplete: string | undefined;
18 @Input() label: string | undefined;
19 @Input() additionalInfo: string | undefined;
20 @Output() onInputChange: EventEmitter<string | undefined> = new EventEmitter();
21
22 handleInput(value: string) {
23 this.onInputChange.emit(value)
24 }
25}
Note: See TracBrowser for help on using the repository browser.