UNPKG

bia-framework

Version:

Bia Framework to work with angular 2

41 lines (32 loc) 1.14 kB
import {Component, Input, Output, EventEmitter, Host} from "@angular/core"; import {NgFormControl, NgClass, NgFor, NgModel} from "@angular/common"; import {CoreForm} from "../odisseia-form/odisseia-form"; import {CoreControlFormBase} from "../odisseia-form/CoreControlFormBase"; /** * Created by jd on 04/02/2016. */ @Component( { selector: "odisseia-input", templateUrl: "node_modules/bia-framework/components/odisseia-input/odisseia-Input.component.html", directives: [NgFormControl, NgClass, NgFor, NgModel] } ) export class OdisseiaInput extends CoreControlFormBase { /*region "Inputs and Out"*/ @Input() name:string; @Input() bind:Object; @Output() bindChange = new EventEmitter<Object>(); @Input() description:string; @Input() inputType:string; @Input() isDisabled:boolean; /* endregion */ constructor(@Host() formHost:CoreForm) { super(formHost); this.setupBind(this.name, this.bind, this.bindChange); // this.controlValidators = []; // this.validationList = []; } }