bia-framework
Version:
Bia Framework to work with angular 2
41 lines (32 loc) • 1.14 kB
text/typescript
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.
*/
(
{
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"*/
() name:string;
() bind:Object;
() bindChange = new EventEmitter<Object>();
() description:string;
() inputType:string;
() isDisabled:boolean;
/* endregion */
constructor(() formHost:CoreForm)
{
super(formHost);
this.setupBind(this.name, this.bind, this.bindChange);
// this.controlValidators = [];
// this.validationList = [];
}
}