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