Files
mowesta/web-angular/src/app/widgets-common/name-field.component.ts
T
handte 5c9b16500b
LocationBasedServices/mowesta/master This commit looks good
Webapp design update, fix bug in measurement api.
2020-03-02 11:27:49 +01:00

29 lines
647 B
TypeScript

import { Component, Input } from '@angular/core';
import { FormErrorEncoder } from '../utils';
import { ResourceService } from '../services';
/**
* A validated field that enables a user to enter the
* human name. The name will be available through the
* components name which also acts as an input.
*/
@Component({
selector: 'app-name-field',
templateUrl: './name-field.component.html'
})
export class NameFieldComponent extends FormErrorEncoder {
/**
* The human name
*/
@Input() name: string;
/**
* Disables the field.
*/
@Input() disabled: boolean;
constructor(public res: ResourceService) {
super();
}
}