1 /***********************************************************
2 onSubmit : action when set button is clicked
3 onCancel : action when cancel/X button is clicked
4 getModelInformation : should generate the model information
5 getGenericFormPopupDetails : returns list of controls
6 getInstance : returns exists instance (if exist)
7 getTitle : returns generic popup title
8 getSubLeftTitle : returns generic popup left sub title
9 getSubRightTitle : returns generic popup right sub title
10 ***********************************************************/
12 import {FormGroup} from "@angular/forms";
13 import {ITreeNode} from "angular-tree-component/dist/defs/api";
14 import {FormPopupDetails} from "../../../models/formControlModels/formPopupDetails.model";
16 export interface GenericPopupInterface {
17 onSubmit(that, form: FormGroup, ...args) : void;
18 onCancel(that, form) : void;
19 getModelInformation(serviceId : string, modelName : string) : void;
20 getGenericFormPopupDetails(serviceId : string, modelName : string , storeKey : string, node : ITreeNode, uuidData : Object, isUpdateMode : boolean) : FormPopupDetails;
21 getInstance(serviceId : string, modelName : string , storeKey : string) : any;
22 getTitle(isUpdateMode : boolean) : string;
23 getSubLeftTitle() : string;
24 getSubRightTitle() : string;