@@ -66,29 +66,46 @@ utfToUnicode(utfString:string=""):string<br>
66
66
` framework.EventDispatcher:Class `
67
67
List of functions:
68
68
`var dispatcher = new EventDispatcher();
69
- //How to add and remove an EventListner on an dispatcher;
69
+
70
+ //How to add and remove an EventListner on an dispatcher
71
+
70
72
dispatcher.addEventListner(type: string ,trigger:(eventType?: string ,param?: any )=>any): void ;
71
- //sample : dispatcher.addEventListner("LOGGED_IN",this.userIsLoggedIn);
73
+
74
+ //sample : dispatcher.addEventListner("LOGGED_IN",this.userIsLoggedIn)
75
+
72
76
dispatcher.removeEventListner(type: string ,trigger:(eventType?: string ,param?: any )=>any): void ;
73
- //sample : dispatcher.removeEventListner("LOGGED_IN",this.userIsLoggedIn);
74
- //How to dispatch an event on your dispatcher;
77
+
78
+ //sample : dispatcher.removeEventListner("LOGGED_IN",this.userIsLoggedIn)
79
+
80
+ //How to dispatch an event on your dispatcher
81
+
75
82
dispatcher.dispatchEvent(type: string ,param: any =null): void ;
83
+
76
84
//sample : dispatcher.dispatchEvent("LOGGED_IN",userTocken)`
77
85
78
86
## PageManager(ReactRouter's Assist)
79
87
`
80
- dispatcher: new EventDispatcher(),
81
- PAGE_CHANGED : "PAGE_CHANGED",
82
- routerParamList:'',
83
- changePage: changePage ,
84
- decodePageParams: decodePageParams ,
85
- getCurrentPage: getCurrentPage ,
86
- registerPage: registerPage ,
88
+ dispatcher: new EventDispatcher()
89
+
90
+ PAGE_CHANGED : "PAGE_CHANGED"
91
+
92
+ routerParamList:''
93
+
94
+ changePage: changePage
95
+
96
+ decodePageParams: decodePageParams
97
+
98
+ getCurrentPage: getCurrentPage
99
+
100
+ registerPage: registerPage
87
101
`
88
102
### PageData
89
103
` url: string ;
104
+
90
105
pageName:string;
106
+
91
107
component?:React.ComponentClass;
108
+
92
109
pageData:any;
93
110
`
94
111
0 commit comments