angular/projects/researchdatabox/form/src/app/component/textfield.component.ts
Properties |
constructor(initJson: any)
|
||||||
Parameters :
|
type |
Type : string
|
Default value : 'text'
|
id |
Type : string
|
Inherited from
ModelBase
|
Defined in
ModelBase:5
|
label |
Type : string
|
Inherited from
ModelBase
|
Defined in
ModelBase:7
|
name |
Type : string
|
Inherited from
ModelBase
|
Defined in
ModelBase:6
|
value |
Type : T
|
Inherited from
ModelBase
|
Defined in
ModelBase:4
|
import { Component } from '@angular/core';
import { FormBaseComponent, ModelBase } from "@researchdatabox/portal-ng-common";
export class TextField extends ModelBase<string> {
type: string = 'text'
constructor(initJson: any) {
super(initJson);
}
}
@Component({
selector: 'textfield',
template: `
<span>Text Label</span>
<input type='text' value='hello!' />
`,
})
export class TextFieldComponent extends FormBaseComponent {
}