From fbf23f0bdd025b6a0a2daa26117d5051a89165fc Mon Sep 17 00:00:00 2001 From: BoykoAlex Date: Wed, 30 Aug 2017 18:50:49 -0400 Subject: [PATCH] Adjustments for form control value validation API --- src/lib/src/shared/flo.properties.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/lib/src/shared/flo.properties.ts b/src/lib/src/shared/flo.properties.ts index 4eb6ef2..dadfca1 100644 --- a/src/lib/src/shared/flo.properties.ts +++ b/src/lib/src/shared/flo.properties.ts @@ -23,7 +23,7 @@ export namespace Properties { description? : string; defaultValue? : any; value? : any; - readonly metadata : Flo.PropertyMetadata; + readonly metadata? : Flo.PropertyMetadata; } export interface SelectOption { @@ -53,15 +53,9 @@ export namespace Properties { readonly validation? : Validation; } - // export interface Model { - // loaded : EventEmitter; - // controls : EventEmitter; - // applyChanges() : void; - // } - export class GenericControlModel implements ControlModel { - constructor(private _property : Property, public type : InputType) {} + constructor(private _property : Property, public type : InputType, public validation? : Validation) {} get id() { return this.property.id;