Add default model view input types and validation (#1397)

This commit is contained in:
Matt Irvine
2018-05-14 16:20:19 -07:00
committed by GitHub
parent 89c48bbe75
commit 9bd45cf66a
14 changed files with 363 additions and 118 deletions

View File

@@ -15,12 +15,12 @@ export interface IView {
}
export interface IModelView extends IView {
initializeModel(rootComponent: IComponentShape): void;
initializeModel(rootComponent: IComponentShape, validationCallback?: (componentId: string) => Thenable<boolean>): void;
clearContainer(componentId: string): void;
addToContainer(containerId: string, item: IItemConfig): void;
setLayout(componentId: string, layout: any): void;
setProperties(componentId: string, properties: { [key: string]: any }): void;
setValid(componentId: string, valid: boolean): void;
registerEvent(componentId: string);
onEvent: Event<any>;
validate(componentId: string): Thenable<boolean>;
}