File

angular/projects/researchdatabox/form/src/app/component/textfield.component.ts

Extends

ModelBase

Index

Properties

Constructor

constructor(initJson: any)
Parameters :
Name Type Optional
initJson any No

Properties

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 {

}

results matching ""

    No results matching ""